Fake Backend service of Northwind database for frontend tutorials.
To get a local copy up and running follow these simple steps.
- npm
npm install npm@latest -g
- Clone the repo
git clone https://github.com/ahmet-cetinkaya-other/northwind-json-server.git
- Install NPM packages
npm install
Start project
npm start
Check json-server routes.
In addition:
Route | Comment | Body | Header | Return |
---|---|---|---|---|
auth/login | Login process | {userName: string, password: string} |
{success:boolean, access_token:string} |
|
auth/test | Test your access token | Authorization: "Bearer <access_token>" |
{success:boolean, message:string} |
|
auth/test-admin | Test your access token has admin role | Authorization: "Bearer <access_token>" |
{success:boolean, message:string} |