- You'll need PostgreSQL installed - configure the settings in config.js
- Set a strong JWT secret in config.js
This should start Postgres in Docker Nicely, no configuration required in config.js.
docker run --name nitro-postgres -p 5432:5432 -e POSTGRES_USER=nitro -e POSTGRES_PASSWORD=secret -d postgres
- Run
npm run migrateto run migrations. - Run with
npm start. There will be an error if it can't connect to the database. - Run
npm run migrate:testto run tests. Recommended to make sure everything is working. npm run testwill fail if run more than once without redoing migrations.- You'll need to pull the Nitro client in order for the server to host it. http://github.com/nitrotasks/nitro