This is a web app for:
- logging income and expenses
- calculate savings based on income/expenses
- searching income/expenses
- Ming Ho - @super-ming
- Philosocode - @Philosocode
- Roo - @rdollent
- VictorCam - @VictorCam
Front End
- React (create-react-app)
- React Router
- Redux
Back End
- NodeJS
- Express
- PostgreSQL
- NodeJS +
npm
- PostgreSQL
- You'll need to have
node
(andnpm
) installed. Download it here
Instructions obtained from this post: https://www.byteconf.com/blog/building-a-full-stack-application-with-react-and-node
Windows
Download from here: https://www.postgresql.org/download/windows/
Mac
- Install Homebrew: https://brew.sh
- Then, run
brew install postgresql
in your terminal - After installing Postgres with Brew, run
brew services start postgresql
in your terminal
In your terminal, make sure you're in the root directory of the project. Run: createdb <dbname>
. Do not include the angle brackets < >!
In your terminal, run: psql -d <dbname> -f api/db/migrations/migration-1554797849605.sql
.
This will setup the table with the data in the api/migrations/migration-*.sql
file.
In the api/config
folder, create a file called keys_dev.js
. Replace <dbname>
with the name of the database you created in Postgres.
If you created a database user (refer to the guide posted above), you can also replace postgres
and ''
with your database's user + password.
module.exports = {
databaseName: '<dbname>', // dbname == the name of the database you created
user: 'postgres', // or your database user
password: '', // or your database user's password
secret: "<secret>" // secret for JWT strategy
};
- Run
npm install
in the root directory - cd into
api
directory and runnpm install
- cd into
client
directory and runnpm install
- In the
api/config
folder, make sure you added thekeys_dev.js
file (refer to step above). - In the root directory, run
npm run dev
to launch the client and the server.
Make sure you're in the root directory.
To start both the server and the client, run:
npm run dev
To start just the API server, run:
npm run start:api
To start just the React client, run:
npm run start:client
- Icons: Font Awesome