Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

nitrotasks/nitro-server

Repository files navigation

Nitro Sync 3

Build Status Maintainability Test Coverage Dependency Status devDependency Status

Configure

  • You'll need PostgreSQL installed - configure the settings in config.js
  • Set a strong JWT secret in config.js

Postgres Docker Sample

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

Running

  • Run npm run migrate to run migrations.
  • Run with npm start. There will be an error if it can't connect to the database.
  • Run npm run migrate:test to run tests. Recommended to make sure everything is working.
  • npm run test will 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