Welcome to "Food Recipes - Hôm nay ăn gì", a convenient app designed to help you choose recipes faster. With our app, you can easily find recipes that you can make using the ingredients available in your fridge.
Our app has three main flows:
- Suggest Recipes: Select the ingredients you have, and the app will recommend recipes you can prepare.
- Show Detailed Recipes: View detailed steps and ingredients for each recipe.
- Add Recipes: Contribute your own recipes to the app.
- Frontend: Next.js 14
- Backend: Server actions in Next.js 14, integrated with Prisma and MongoDB for database management.
- Image Uploads: Handled by Uploadthing.
Follow these instructions to set up the app on your local machine for development and testing purposes.
Ensure you have Node.js installed on your machine. If not, download and install it from Node.js official website.
-
Clone the repository:
git clone https://github.com/btdat1412/food-recipies.git
-
Navigate to the project directory:
cd food-recipies
-
Install dependencies:
npm install
-
Set up environment variables:
-Create a
.env
file in the root of the project and add the following:DATABASE_URL=your_database_url UPLOADTHING_SECRET=your_uploadthing_secret UPLOADTHING_APP_ID=your_uploadthing_app_id
-Replace
your_database_url
,your_uploadthing_secret
, andyour_uploadthing_app_id
with your actual MongoDB URL, Uploadthing secret, and app ID respectively. -
Run the app:
npm run dev
The app will start running on
localhost:3000
(or another port if specified).