Hosted at: https://paycheck-of-existence.firebaseapp.com/. Requires login. Currently only available for me.
For any questions about this app, you can contact me at dagerikhl@gmail.com.
Personal tool to keep track of hours worked each week.
- Install Node and NPM (Node.js).
- Run
npm install
to install dependencies.
- Run
npm run build
to build a production bundle.
- Run
npm start
to start a local development app that restarts on changes.
- Run
npm run commit
to commit using commitizen, creating a commit message on the conventional-changelog format. - Run
npm run release
to generate a newCHANGELOG.md
based on commit messages, increment the version, and tag the release. - Run
npm run deploy
to deploy the app directly to Firebase.- Note! This requires Firebase to be configured.
- Note! This requires certain environment variables to be set, see Configuration.
- Note! This deploys the application a Firebase alias,
staging
.
The project is setup to deploy automatically with Travis, but only to staging. To deploy the application to production, follow the steps in Deployment, and run npm run deploy:prod
to deploy the newly generated release to production.
- The app is written in TypeScript as a React app.
- The app was bootstrapped with create-react-app.
- The app connects to a back-end database: Google's Firebase.
- The server uses dotenv for configuration.
- All environment variables are accessed through
process.env.<variable>
. - Note! For local development, a local configuration-file,
.env.local
, with all environment variables is required.- Note! This file should not be commited and used in production. The production server should have different values from local development.
- Note! If environment variables are set through other means, such as npm scripts or server configuration, these are used over the configuration-file.
- All environment variables are accessed through