Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manadaym/extr
Expense tracker app.
https://github.com/manadaym/extr
Last synced: 19 days ago
JSON representation
Expense tracker app.
- Host: GitHub
- URL: https://github.com/manadaym/extr
- Owner: ManadayM
- Created: 2022-01-27T17:02:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T18:57:25.000Z (6 months ago)
- Last Synced: 2024-06-26T23:25:53.330Z (6 months ago)
- Language: TypeScript
- Size: 2.74 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`