Skip to content

brunomileto/project-tracker-backend

Repository files navigation

This is the backend for the project tracker frontend

The project is a simple electron app, that you can track work hours in tasks and the respective project for that task.

App Image

It is ready to upload on Heroku. You can use the Isomnia Json for dev environment but also, after upload to heroku, you can use de prd environment to set your heroku url.

Getting Started

First, install de dependecies:

npm install
# or
yarn

Then, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Technology stack:

Firebase Configuration

Step 1. Create Firebase account

Create Firebase account

Step 2. Setup Authentication Method

  • Click Set up sign-in method on Authentication section.
  • Enable just Google authentication provider.
  • Add your domain (if you have one) to Authorized domains.

Setup authentication

Step 3. Create Firestore database

  • Go to Database section and create Firestore instance.

Create Firestore database

Step 4. Set up Firebase secret keys for our app.

  • Create .env at the root of the project. Do not commit this file. It is personal data that should not be available for everyone.
  • Go to Project settings in Firebase console (click on the gear icon next to Project Overview).
  • Copy data from this page to .env in the following format:
F_PROJECT_ID=<your Project ID>
F_AUTH_DOMAIN=<your Project ID>.firebaseapp.com
F_API_KEY=<your Web API Key>

Step 5. Set up Firebase Admin SDK key for importing/exporting data from database.

In order to be able to initialize database with initial seed we need to generate private Firebase Admin service key.

  • Go to Project Settings > Service Accounts and click Generate new private key button.
  • Save downloaded file as firebase-service-key.json at project root. ** Do not commit this file. It's added to .gitignore by default.

Step 7. Initialize.

We almost finished. Let's initialize what we have done.

yarn

OR

npm install

License

Licensed under the MIT License, Copyright © 2022-present Bruno M. D. Assunção

See LICENSE for more information.

About

NodeJs api server to save projects and tasks in order to track the time spent on them. This is the backend of the project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published