Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/prititi/assignment


https://github.com/prititi/assignment

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

This is the assignment of pococare and i have to built front-end and back-end both.

### Install npm Packages

```javascript
npm i --global
```

### Run Server
```javascript
npx nodemon index.js
```
### Runs the project in the development mode

[http://localhost:8500](http://localhost:8500)

## Run

To run this application, you have to set your own environmental variables. For security reasons, some variables have been hidden from view and used as environmental variables with the help of dotenv package. Below are the variables that you need to set in order to run the application:

## NPM Packages


bcrypt.png
cors
dotenv
jwt
mongoose.png
nodemailer
nodemon.png




## API Endpoints
#### Welcome
```javascript
GET /
```
#### /user

```javascript

```
#### User
```javascript
onlt admin and super admin can acces this route
GET /user/all
POST /user/register
POST /user/login
GET /user/logout
PATCH /user/update:id
DELETE /user/update:id

#### user Body
{

name: String,
email: String,
password: String,
role: user ,seller: String
}