Update readme.md

This commit is contained in:
Fabio 2024-11-01 08:07:29 +00:00
parent b747ae5fda
commit 5d40081ab3

View file

@ -6,7 +6,6 @@ This project allows us to use an API Rest to develop in the frontend with mock d
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`.
## Start/Stop servers
@ -19,7 +18,6 @@ To generate database mock data run `npm run mock-data`.
| Description | Script |
| ------------------------------ | ------------------- |
| Generate mock data | `npm run mock-data` |
| Generate user hashed passwords | `npm run hash` |
## Endpoints for auth server
@ -27,8 +25,8 @@ To generate database mock data run `npm run mock-data`.
| Endpoint | Description |
| ------------------------------ | ------------------- |
| `localhost:3000/auth/login` | Login user |
| `localhost:3000/products` | Products list (token needed) |
| `localhost:3000/sellers` | Sellers list (token needed) |
| `localhost:3000/photos` | Products list (token needed) |
[json-server api reference](https://github.com/typicode/json-server)