An expense management application written with React and Firebase. Track your expenses month by month to make sure you don't overspend.
Click here for a working live demo.
-
Open a Firebase account.
-
Clone this repo and add an environment variables files in the root of the project directory. There are three types of files:
- .env.development - A file for development environment
- .env.test - A file for test environment
- .env.production - A file for production environment
These files include sensitive information and you should never commit any of them
File format
FIREBASE_API_KEY=<FIREBASE_API_KEY> FIREBASE_AUTH_DOMAIN=<FIREBASE_AUTH_DOMAIN> FIREBASE_DATABASE_URL=<FIREBASE_DATABASE_URL> FIREBASE_STORAGE_BUCKET=<FIREBASE_STORAGE_BUCKET> FIREBASE_MESSAGING_SENDER_ID=<FIREBASE_MESSAGING_SENDER_ID> FIREBASE_APP_ID=<FIREBASE_APP_ID=> FIREBASE_MEASUREMENT_ID=<FIREBASE_MEASUREMENT_ID>
-
Port is set by default to port 3000. If you want to run the application on a different port, set a
PORT
environment variable manually (and not in the files).
In the project directory run yarn install
to install all the dependencies.
The application use a custom Webpack configuration. The build commands for development and production generate the bundle.js
and styles.css
files and the source maps for each file. You can find these files under public/dist/
.
In the project directory run yarn run build:dev
to build the project.
In the project directory run yarn run build:prod
to build the project.
In the project directory run yarn run start
to start the application. You should now be able to access it from http://127.0.0.1:<PORT>/
. IF you didn't confiugred the PORT environment variable, the default port is 3000.
In the project directory run yarn run test
.
This application was written as part of Andrew Mead's "The Complete React Developer Course" course.