Skip to content

Commit

Permalink
separate docker db setup and docker app build
Browse files Browse the repository at this point in the history
  • Loading branch information
n0str committed Oct 18, 2023
1 parent e9f0d45 commit bf2660f
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Development

## Running in development mode
## Setup local database

To run application in development mode you need to run `npm run dev` command.
It will start application with `nodemon` and restart it on any changes in source code.

You can try to build and run it in local Docker (see `postgres.yml`):
You can install PostgreSQL local https://www.postgresql.org/download/ or use Docker (see `postgres.yml`):
```
version: "3.2"
services:
Expand All @@ -22,6 +19,23 @@ services:
To run it execute: `docker compose -f postgres.yml up -d` where `-d` is used for background run.
If you have outdated version of docker, try use `docker-compose` instead of `docker compose` (https://docs.docker.com/compose/)

## Running application in development mode

To run application in development mode you need to run `npm run dev` command.
It will start application with `nodemon` and restart it on any changes in source code.

You can try to build and run it in local Docker:
```
version: "3.2"
services:
api:
build:
dockerfile: Dockerfile
context: .
ports:
- "127.0.0.1:3000:3000"
```

## Configuration

Default application configuration is stored in `app-config.yaml` file.
Expand Down

0 comments on commit bf2660f

Please sign in to comment.