https://github.com/manadaym/extr
Expense tracker app.
https://github.com/manadaym/extr
Last synced: about 1 year ago
JSON representation
Expense tracker app.
- Host: GitHub
- URL: https://github.com/manadaym/extr
- Owner: ManadayM
- Created: 2022-01-27T17:02:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-09T07:30:39.000Z (over 1 year ago)
- Last Synced: 2025-02-09T08:25:09.200Z (over 1 year ago)
- Language: TypeScript
- Size: 1.21 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Backend
**Base Directory:** `./backend`
### Install Dependencies
1. Navigate to the `backend` directory - `cd backend`
1. Run `npm install`
### Set Environment Variables
1. Navigate to the `backend` directory - `cd backend`
2. Create `.env` file inside the `env` directory.
3. Open `sample.env` file.
4. Copy all **REQUIRED** env variables and paste them inside your current env file created in step #2.
5. Set values for all the env variables you just copied in step #4.
### Database Setup
1. Create a new Postgres database `extr`.
2. Navigate to the `backend` directory - `cd backend`
3. Run this to generate DB structure - `DATABASE_URL=postgres://:@:/extr npm run migrate up`
## Bootstrapping API Server
1. Navigate to the `backend` directory - `cd backend`
2. Run `npx tsc` to build the application for the first time.
4. Run `npm run watch:js` to turn on the watch mode for TS files.
3. Run `npm start`