This repository contains the api for the course application from thematic semester Internet of Things.
It runs on the Node.js framework Hapi version 17.x.x
- Knex: >= 0.12.9
- Create a SQLite3, MySQL or Postgres database
- Enter the credentials in knexfile.js
- Run all migrations:
knex migrate:latest
production uses a .env file for configurations:
NODE_ENV=production
DB_HOST=xxx
DB_USERNAME=xxx
DB_PASSWORD=xxx
DB_NAME=xxx
SERVER_PORT=xxx
SERVER_HOST=xxx
npm install
npm start
npm run test