A sample Node.js REST-API with PostgreSQL database.
Use the following command to install the dependencies:
npm install
Use the following command to run the application:
npm start
Use the following command to run all the unit and integration test:
npm test
Sequelize migrations is used to initialise the database (create tables and insert mock data). To perform migrations you need the Sequelize Command-Line Interface (CLI). Here you find more info about Sequelize migrations.
To create tables in the DB run the following command:
npx sequelize-cli db:migrate
To insert mock data to the DB run the following command:
npx sequelize-cli db:seed:all