This project is a Recipe App that allows users to browse, like, and manage recipes. It includes a backend server and a frontend React application.
Follow these instructions to set up and run the project on your local machine.
- Node.js
- npm (Node Package Manager)
- sqlite3
-
Clone the repository:
git clone https://github.com/Promess02/Tastify.git cd Tastify
-
Install all packages:
cd backend npm i . cd ../middleware npm i . cd ../recipe-app npm i .
-
Running the backend server:
cd backend node server.js
-
Running the frontend app:
cd recipe-app npm start
-
Running the database (optional):
sqlite3 recipeApp.db
-
Check the Swagger API documentation on http://localhost:4000/api-docs (optional).
-
Running the app from docker (optional):
- make sure nothing is running on ports 3000 and 4000
- run docker daemon
- build docker image from project root folder:
docker build -t tastify-app .
- run docker container
docker run -p 4000:4000 -p 3000:3000 tastify-app
- check if container is running
docker ps
- Access the frontend at localhost:3000 and server at localhost:4000
- Login as an admin to check full project functionality:
- click Login button
- enter email: [email protected] and password: admin
- enjoy all the app features including user and recipe management