A simple shoutbox application, which stores messages in database.
- docker
- (optional) postgres
Postgres can run from docker
cp template.env .env
docker-compose up --build
- editing .env file you can change ports and postgres username but for testing it should be sufficient
localhost:4000
- the port is based on your .env file
for this setup you need 4 separate terminal windows/processes ( I know it is not perfect at all :-( ))
DB (postgres) should be started before you start the backend you can run postgres in docker or you can your (local) instance
docker-compose -f docker-compose.dev.yml up --build
run watcher for build
cd backend
npm ci
tsc --watch or ./node_modules/.bin/tsc --watch
run webserver in another terminal/cmd/bash
npm run start
- for local development is necessary to change DB_HOST to localhost, on accordingly to you environment
run watcher for build
cd frontend
npm ci
npm run watch
npm run watch -- development
npm run build -- production