Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmet-cetinkaya/northwind-json-server
Fake backend service of Northwind database for frontend tutorials.
https://github.com/ahmet-cetinkaya/northwind-json-server
Last synced: 3 days ago
JSON representation
Fake backend service of Northwind database for frontend tutorials.
- Host: GitHub
- URL: https://github.com/ahmet-cetinkaya/northwind-json-server
- Owner: ahmet-cetinkaya
- Created: 2022-07-25T16:04:52.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T12:23:09.000Z (8 months ago)
- Last Synced: 2024-05-16T02:09:34.083Z (8 months ago)
- Language: JavaScript
- Size: 162 KB
- Stars: 3
- Watchers: 0
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
```sh
npm install npm@latest -g
```### Installation
1. Clone the repo
```sh
git clone https://github.com/ahmet-cetinkaya-other/northwind-json-server.git
```
2. Install NPM packages
```sh
npm install
```## 🚀 Usage
Start project
```sh
npm start
```
### 🔀 Routes
**Check [json-server routes](https://github.com/typicode/json-server/blob/master/README.md#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 "` | `{success:boolean, message:string}` |
| auth/test-admin | Test your access token has admin role | | Authorization: `"Bearer "` | `{success:boolean, message:string}` |