Skip to content

Fake backend service of Northwind database for frontend tutorials.

Notifications You must be signed in to change notification settings

ahmet-cetinkaya/northwind-json-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗄️

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}

About

Fake backend service of Northwind database for frontend tutorials.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published