rest-skeleton-js
Getting started
Start by cloning this repository
$ git clone git@github.com:emilhornlund/rest-skeleton-js.git
Generate keys and certificates
Generate a self signed key and certificate
$ openssl genrsa -out localhost.key 2048
$ openssl req -new -x509 -key localhost.key -out localhost.cert -days 3650 -subj /CN=localhost
Generate JWT public and private key pair
$ openssl genrsa -out private.pem 2048
$ openssl rsa -in private.pem -outform PEM -pubout -out public.pem
Configuration
$ mv config.sample.yml config.yml
$ vim config.yml
Install the dependencies
$ npm install
Migrations
$ npx sequelize db:migrate --env dev
$ npx sequelize db:seed:all --env dev
Start the server
$ npm start