Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prititi/assignment
https://github.com/prititi/assignment
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/prititi/assignment
- Owner: prititi
- Created: 2023-06-02T06:57:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-04T17:23:07.000Z (over 1 year ago)
- Last Synced: 2024-11-07T19:27:00.294Z (about 2 months ago)
- Language: JavaScript
- Size: 985 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
## 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
}