This project consists of a web application consisting of a front-end and back-end, and a JSON based REST-ful web service. Both will connect to a MongoDB cluster.
- User Registration
- Login / Logout
- MongoDB as Database
- View items without Auth
- Dynamic Endpoints
- Client Side JS
- OAuth/OpenID
- Host on Cloud
- MVC Architecture
- User Registration
- Login / Logout
- MongoDB as Database
- View items without Auth
- Dynamic Endpoints
- Host on Cloud
- MVC Architecture
{
"_id": "The id of the hat in the database",
"name": "Name of the hat",
"price": "The price of the hat",
"color": "The color of the hat",
"animal": "The animal the hat is for",
"size": "The size of the animal",
"design": "The type of hat",
"imageUrl": "A url that leads to the image for the hat"
}
Request type | URL | Body | Description |
---|---|---|---|
GET | https://limitless-cove-65021.herokuapp.com/api/hats | None | Get the list of hats |
POST | https://limitless-cove-65021.herokuapp.com/api/hats | Hat JSON without the _id property |
Add a hat to the list of hats |
GET | https://limitless-cove-65021.herokuapp.com/api/hats/:id | None | Get the hat with the specified id |
PUT | https://limitless-cove-65021.herokuapp.com/api/hats/:id | Hat JSON | Update the hat with the specified id to the given hat |
DELETE | https://limitless-cove-65021.herokuapp.com/api/hats/:id | None | Delete the hat with the specified id |
Make some changes to the code and deploy them to Heroku using Git.
$ git add .
$ git commit -am "Commit message"
$ git push heroku master
...
#Remote output
...
remote: Verifying deploy... done.
To https://git.heroku.com/limitless-cove-65021.git
963c2b4..fab490b master -> master