- An app for people who chooses vegan life style to have exclusive part in this community so they can create, edit and experiment new recipes and search for other users recipes and leave reviews/notes under each recipe as they like.
- Fork and clone this repo along with the client repo below inside the same folder.
- Change the directory
cd <folder name>
to the repo you cloned. - For dependency package installing, run
npm i
. - Create .env file to store authentication token jwt secret.
- Nodemon will be used by running
npm run start
.
- Javascript
- CSS
- React Bootstrap
- React.js
- express
- MongoDB
- Mongoose
- Node
Vegan Recipes Client Repository
Building a Mern app using ReactJS can be usable by many users;
- can create a profile.
- can create recipes.
- can display all recipes on profile.
- can show specific recipe.
- can add a review to each recipe.
VERB | URI Path | CRUD | Description |
---|---|---|---|
POST | /register |
Create | sign up/ user registeration |
GET | /profile |
Read | displays user profile page |
POST | /login |
Read | login /find user |
VERB | URL Path | CRUD | Description |
---|---|---|---|
GET | / |
Read | Welcome page |
GET | /recipes |
Read | displays all recipes in db |
GET | /recipes/:userid |
Read | displays all recipes by specific user |
GET | /recipes/:id |
Show | displays the specific recipe |
POST | /recipes/:userid |
Create | create a new recipe |
PUT | /recipes/:id |
Update | update the recipe created by user |
DELETE | /recipes/:id |
Destroy | removes the recipe user created |
POST | /note/:id |
Create | adds a review or a note to the recipe |
PATCH | /note/:id |
Update | updates the note created by user |
DELETE | /note/:id |
Destroy | removes the note user created |
- editing comments.
- deleting comments.
- display other user recipes.
- able to add comments on other user recipes and delete.
- can edit password and delete account.
| VERB | URL Path | CRUD | Description |
| :----: | :-----: | :----: | :--------: |
| GET |
/logout
| Read | logout user | | PUT |/profile/:id
| Update | updates user password | | DELETE |/profile/:id
| Destroy | deletes profile |