Skip to content

Marcus-Rise/budget-api

Repository files navigation

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
docker-compose -f docker-compose.local.yml up -d
  • Watch http://localhost:8080 db browser

In app folder

  • Install dependencies
yarn install
  • Copy .env.example as .env

  • Generate orm config

yarn typeorm:config
  • Run migrations
yarn migration:run
  • Run local dev server
yarn start:dev

Local demo

In app folder

  • Install dependencies
yarn install
  • Build app
yarn build
  • In project root folder Up
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