Central Remotr backend server
Running this software requires Docker to be installed on the host system. For development, Node.js and NPM must also be installed.
For production:
# Configure
cp .env.example .env
nano .env
# (Edit configuration)
# Generate database initialisation script
npm run db:init
# To start:
docker compose -f docker-compose.production.yml up -d
# To stop:
docker compose -f docker-compose.production.yml stop
# To tear down:
docker compose -f docker-compose.production.yml down
For development:
# Install dependencies
npm i
# Configure
cp .env.example .env
nano .env
# (Edit configuration)
# Generate database initialisation script
npm run db:init
# Generate database initialisation script
npm run watch
# (In different terminal since watch occupies the current session)
# To start:
docker compose -f docker-compose.development.yml up -d
# To stop:
docker compose -f docker-compose.development.yml stop
# To tear down:
docker compose -f docker-compose.development.yml down