This is a Next.js project bootstrapped with create-next-app
.
Welcome to the Recipe Master project! This is a web application built with Next.js, a powerful React framework for building server-side rendered and statically generated web applications. The project was bootstrapped with create-next-app, providing a solid foundation for developing modern web applications.
First, install the project dependencies:
bun install
Create a .env.local file in the root of your project and add your own values for the following variables:
AUTH_SECRET="your_auth_secret" AUTH_GOOGLE_ID="your_google_client_id" AUTH_GOOGLE_SECRET="your_google_client_secret" DATABASE_URL="your_database_url" #DATABASE_URL_UNPOOLED="your_unpooled_database_url" //if you are using NeonDB or similar solution
Run the following commands to set up your database schema:
bunx prisma migrate dev --name init
bunx prisma generate
bunx prisma generate
Finally, start the development server:
bun next dev
Open http://localhost:3000 with your browser to see the result.
Project Structure -> app/: Contains the main application code. app/api/: backend api routes hooks/: Reusable hooks lib:/: usefull ultilties prisma/: schema and configuration of prisma types/: common types components/: Reusable UI components. schema:/ react-hook-form schema for form validation public:/ static files
You can view the hosted app @ Recipe-Master.KhaledHm.tn.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.