-
Create database
microauth
(or any name you like) if not existsmysql> create database microauth
-
Install dependencies:
$ npm install
-
Create .env file from .env.example file and fill required values.
-
Generate tables from DB schema:
$ npm run migrate-db
The above command will create all tables with proper schemas.
- Generate sample data for testing:
$ npm run seed-db
The above command will populate all tables with sample data.
- Run local server:
$ npm run start:dev
The above command will start the server in watch mode.
$ npm run lint
The above command will run eslint
.
All messages are logged in combine.log
file.
Error messages are logged in error.log
file.