This project aims to demonstrate the use of my JSONAPI Express backend project.
npm install
Those keys will be used for JSON Web Token generation and checking.
node keys/keygen
First, you must copy config.sample.json
to config.json
.
The server app can run in three environments: development
, test
, production
. Each has a corresponding key in config.json
. Default environment is development
and can be overrided by setting NODE_ENV
before lauching the app.
You must modify entries in relevant config.json
section to match your MySQL database settings.
Of course you must create the database, through phpMyAdmin or mysql console, and inject the schema (schema.sql
) before running the app.
node server