Skip to content

bhubr/jsonapi-express-backend-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSONAPI Express.js / MySQL backend demo

This project aims to demonstrate the use of my JSONAPI Express backend project.

Installation and setup

1. Install dependencies

npm install

2. Generate public&private key

Those keys will be used for JSON Web Token generation and checking.

node keys/keygen

3. Copy config.sample.json to config.json

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.

4. Create database

Of course you must create the database, through phpMyAdmin or mysql console, and inject the schema (schema.sql) before running the app.

Launch!

node server

About

A blog app based on my jsonapi-express-backend module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published