Update readme.md
This commit is contained in:
parent
b747ae5fda
commit
5d40081ab3
1 changed files with 2 additions and 4 deletions
|
@ -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.
|
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
|
## Start/Stop servers
|
||||||
|
|
||||||
|
@ -19,7 +18,6 @@ To generate database mock data run `npm run mock-data`.
|
||||||
|
|
||||||
| Description | Script |
|
| Description | Script |
|
||||||
| ------------------------------ | ------------------- |
|
| ------------------------------ | ------------------- |
|
||||||
| Generate mock data | `npm run mock-data` |
|
|
||||||
| Generate user hashed passwords | `npm run hash` |
|
| Generate user hashed passwords | `npm run hash` |
|
||||||
|
|
||||||
## Endpoints for auth server
|
## Endpoints for auth server
|
||||||
|
@ -27,8 +25,8 @@ To generate database mock data run `npm run mock-data`.
|
||||||
| Endpoint | Description |
|
| Endpoint | Description |
|
||||||
| ------------------------------ | ------------------- |
|
| ------------------------------ | ------------------- |
|
||||||
| `localhost:3000/auth/login` | Login user |
|
| `localhost:3000/auth/login` | Login user |
|
||||||
| `localhost:3000/products` | Products list (token needed) |
|
| `localhost:3000/photos` | Products list (token needed) |
|
||||||
| `localhost:3000/sellers` | Sellers list (token needed) |
|
|
||||||
|
|
||||||
|
|
||||||
[json-server api reference](https://github.com/typicode/json-server)
|
[json-server api reference](https://github.com/typicode/json-server)
|
||||||
|
|
Loading…
Reference in a new issue