Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.68 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.68 KB

🗄️

northwind-json-server

Fake Backend service of Northwind database for frontend tutorials.

⚙️ Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/ahmet-cetinkaya-other/northwind-json-server.git
  2. Install NPM packages
    npm install

🚀 Usage

Start project

npm start

🔀 Routes

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}