- MongoDB
- Express
- Svelte & SvelteKit
- NodeJS
- Clone this repository:
git clone https://github.com/Ropler6/Proba-IT-2024
cd Proba-IT-2024x- Install the frontend dependencies and start the frontend:
cd frontend
npm install
npm run dev-
Make sure you have MongoDB installed on your system;
-
Install the backend dependencies and start the backend:
cd ..
cd backend
npm install
npm run backend-start- The backend can be stopped using
npm run backend-stop; - Note: the
backend-startandbackend-stopcommands were designed to work on Linux;
-
Go to
http://localhost:5173in the browser of your preference; -
Enjoy!
- in short: virtually all mandatory task have been completed
- homepage
- top-rated recipes: fetched from the database and displayed from best to worst rated
- note: if there are no recipes, the "Top rated" section will be empty
- note 2: currently there is no way to change the rating of a recipe through the website
- note 3: a recipe with a custom rating can be created by sending an HTTP
POSTrequest tolocalhost:3000/recipeswith thebodyproperty (x-www-form-urlencoded in Postman) containing:email: the email of a registered username: the name of the reciperating: the rating of the recipedescription: the description of the recipe
- database & endpoint: stores user-created recipes and returns requested recipes
- top-rated recipes: fetched from the database and displayed from best to worst rated
- profile page
- view user data
- logout button
- register & login pages
- register/login the user
- save/fetch data to/from the database
- save a cookie to keep track of the user
- recipes page
- view recipes in the database
- sort recipes in ascending/descending order
- filter recipes based on their rating
- addrecipes page
- adding recipes to the database (with a confirmation message)
- working with MongoDB and Express
- setting up a database locally
- creating API endpoints for said database
- backend-frontend interaction
- HTTP status codes meaning & usage
- working with Postman