https://github.com/bvipul/node-rest-api
Node Rest API
https://github.com/bvipul/node-rest-api
Last synced: 7 months ago
JSON representation
Node Rest API
- Host: GitHub
- URL: https://github.com/bvipul/node-rest-api
- Owner: bvipul
- License: mit
- Created: 2021-01-16T10:51:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-16T11:06:36.000Z (over 4 years ago)
- Last Synced: 2025-01-10T03:20:35.366Z (9 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-rest-api
Node Rest API# Installation
1. `npm install` - Install all dependency
2. Start mongo server
3. Change the mongo connection url in db.js
4. Seed Organization - `node seed-org.js`
5. Run the Server - `node server.js`# APIs
## /api/auth/register - Register a new User and get token
## /api/auth/login - Login with email and password and get token
## /api/auth/me - profile### When creating a new user, change the organization Object ID in register body