MERN Books is a application where users upload and download books
Is needed to install this software for exec the project
All api endpoints init in /api/ example /api/users
At all endpoints where method is not POST
Authorization
is required in the headers, value is the token obtained at the auth
or user
POST
endpoint
Name | Description | Methods |
---|---|---|
users |
user management | GET POST |
users/:id |
user management | GET PUT DELETE |
books |
books management | GET POST |
books/:id |
books management | GET PUT DELETE |
auth |
login | POST |
Name | Type | Required | Default | Unique |
---|---|---|---|---|
name |
String |
true |
false |
|
avatar |
String |
true |
false |
|
email |
String |
true |
true |
|
password |
String |
true |
false |
|
sex |
String |
true |
false |
|
role |
String |
false |
USER_ROLE |
false |
Name | Type | Required | Ref |
---|---|---|---|
title |
String |
true |
|
description |
String |
true |
|
img |
String |
true |
|
author |
ObjectId |
true |
user |
file |
String |
true |
|
bookAuthor |
String |
true |
cd server
yarn # or npm install
yarn dev # or npm run dev
Comming Soon