https://github.com/gparasyris/back-end-nodejs
Simple Node JS Express server handling POST, GET, PUT, DELETE requests.
https://github.com/gparasyris/back-end-nodejs
api express javascript nodejs postman
Last synced: 4 months ago
JSON representation
Simple Node JS Express server handling POST, GET, PUT, DELETE requests.
- Host: GitHub
- URL: https://github.com/gparasyris/back-end-nodejs
- Owner: gparasyris
- Created: 2018-04-06T01:50:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-12T15:24:17.000Z (almost 7 years ago)
- Last Synced: 2025-03-06T12:49:24.725Z (4 months ago)
- Topics: api, express, javascript, nodejs, postman
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Description ###
Simple Node JS Express server handling `POST`, `GET`, `PUT`, `DELETE` requests on 'user' objects.
#### User Schema ####
```
var UserSchema = new Schema({
firstName: String,
lastName: String,
location: String,
email: String,
facebookId: String,
});```
### How to use ###
1. `mongod`, verify that mongod is running.
2. `npm i`, install the node_modules needed for the server to run.
3. `node server.js`, deploy the server (port 8008 is default, in case env is missing).
4. Check the `Demo_User_Api.postman_collection` (probably import it in Postman) to send requests to the server.