https://github.com/jimthedev/superhero-server
https://github.com/jimthedev/superhero-server
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jimthedev/superhero-server
- Owner: jimthedev
- Created: 2016-11-17T16:14:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-19T13:02:17.000Z (over 8 years ago)
- Last Synced: 2025-01-17T03:42:53.984Z (4 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Example express server
### Getting started
1. clone this repo
2. cd into the directory
3. Install the npm dependencies: `npm install`
4. Run the server with `node src/index.js` or `nodemon src/index.js` (for auto reloading)### In postman
Now the server is running. You can go to
http://localhost:8000/
or
http://localhost:8000/robot
You can also make POSTMAN requests to:
POST:
http://localhost:8000/robot/PUT:
http://localhost:8000/robot/
DELETE:
http://localhost:8000/robot/r2d2/DELETE:
http://localhost:8000/robot/r2d2/part/eyeThe server and all of the express routes are defined in `src/index.js`