Manage all your favourite cooking recipes with foodflame
app.
Discover mouth watering dishes or share your loving recipe with others in minimal efforts.
- Clone this Repository.
git clone https://github.com/vivek-30/food-flame.git
- Rename
.env.example
to.env
mv Server/.env{.example,}
-
Enter values for enviornment variables in
.env
file. -
Build Images and Run Docker Containers using
docker-compose
docker compose up -d
Frontend:
-
npm start
To start this react application. -
npm run build
create a production build of this app inside/build
folder. -
npm test
Launches the test runner in the interactive watch mode. -
npm run eject
This command will remove the single build dependency from your project.
Backend:
-
npm run build
To generate the production build inside/dist
folder. -
npm start
To start the server usingnode
. -
npm run serve
To concurrently transpile*.ts
files in watch mode and start the server usingnodemon
.
users:
-
/user/sign-up
[POST]
To sign up a user. -
/user/log-in
[POST]
To sign in a user. -
/user/log-out
[GET]
To log out a user.
recipes:
-
/recipes/
[GET]
To get all recipes sorted according to their name. -
/recipes/:id
[GET]
To get a specific recipe having ID asid
. -
/recipes/add-recipe
[POST]
To add a new recipe. (Check the schema below) -
/recipes/:id
[PUT]
To update a recipe having ID asid
. -
/recipes/:id
[DELETE]
To remove a recipe having ID asid
.
user:
{
username: String,
email: String,
password: String,
verified: Boolean
}
Except for "verified" field, all other fields are required in case of
signup
but in case oflogin
both "username" and "verified" fields can be omitted.
recipe:
{
name: String,
imageSRC: String,
description: String,
ingredients: [String],
cookingSteps: [String],
userID: String
}
Apart from
imageSRC
field all are required to save / create a recipe.
4000
- Server3000
- Client