https://github.com/marcus-rise/budget-api
Backend service
https://github.com/marcus-rise/budget-api
docker nestjs nodejs typescript
Last synced: about 1 year ago
JSON representation
Backend service
- Host: GitHub
- URL: https://github.com/marcus-rise/budget-api
- Owner: Marcus-Rise
- Created: 2022-05-16T10:34:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-06T11:17:34.000Z (almost 3 years ago)
- Last Synced: 2025-02-05T12:13:23.193Z (about 1 year ago)
- Topics: docker, nestjs, nodejs, typescript
- Language: TypeScript
- Homepage: https://api-dev.budget.marcus-rise.dev
- Size: 319 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Budget API
Backend service for https://github.com/Marcus-Rise/budget
## Requirements
- `yarn`
## Preparation
- Copy `.env.example` as `.env`
## Local dev
In project root folder
- Up services
```shell
docker-compose -f docker-compose.local.yml up -d
```
- Watch `http://localhost:8080` db browser
In `app` folder
- Install dependencies
```shell
yarn install
```
- Copy `.env.example` as `.env`
- Generate orm config
```shell
yarn typeorm:config
```
- Run migrations
```shell
yarn migration:run
```
- Run local dev server
```shell
yarn start:dev
```
## Local demo
In `app` folder
- Install dependencies
```shell
yarn install
```
- Build app
```shell
yarn build
```
- In project root folder Up
```shell
docker-compose -f docker-compose.demo.yml up -d
```
- Watch `https://localhost` app
- Watch `https://localhost/adminer` db browser
**Basic auth:** (https://caddyserver.com/docs/v2-upgrade#basicauth)
- User: user
- Password: password