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.
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.
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.
Step 1. Create Firebase account
- Click Set up sign-in method on Authentication section.
- Enable just Google authentication provider.
- Add your domain (if you have one) to Authorized domains.
- Go to Database section and create Firestore instance.
- 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>
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.
We almost finished. Let's initialize what we have done.
yarn
OR
npm install
Licensed under the MIT License, Copyright © 2022-present Bruno M. D. Assunção
See LICENSE for more information.