This application is a online option for ordering organic foods all while wanting to save some money while doing it.
-
clone the repo
- [email protected]:NeverGiveUpForLife32/goat-cafe.git
-
touch .env
-
SECRET=
-
npm install 👇
- npm install express
- npm install morgan
- npm install gulp
- npm install mongodb-memory-server
- npm install webpack
- npm install mongoose
- npm install dotenv
Action | Method | Path | Action |
---|---|---|---|
create | Post | / | Creates a User |
login | Post | /login | logs in a created User |
index | GET | /check-token |
Action | Method | Path | Action |
---|---|---|---|
index | Get | / | shows a list of items |
index | Get | /:id | shows a single item |
Action | Method | Path | Action |
---|---|---|---|
index | Get | /cart | Shows items in cart |
index | Get | /history | previous orders |
create | POST | /cart/items/:id | |
create | POST | /cart/checkout | |
update | PUT | /cart/qty |