This project allows us to use an API Rest to develop in the frontend with mock datas before the backend is finished.
Clone this repo on your machine and before run npm i
to install all dependences.
To generate database mock data run npm run mock-data
.
Description | Script |
---|---|
Start server without auth | npm start |
Start server with auth | npm run start-auth |
Description | Script |
---|---|
Generate mock data | npm run mock-data |
Generate user hashed passwords | npm run hash |
Endpoint | Description |
---|---|
localhost:3000/auth/login |
Login user |
localhost:3000/products |
Products list (token needed) |
localhost:3000/sellers |
Sellers list (token needed) |
Inspired in this post by Techiediaries
This project is licensed under the terms of the MIT license.