- User Authentication: Secure user authentication and registration system.
- Recipe Management: Create, edit, and delete your recipes.
- Recipe Discovery: Browse and search for recipes shared by other users.
- Comments and Ratings: Leave comments and rate recipes.
- Favorite Recipes: Save your favorite recipes for easy access.
- Responsive Design: Works seamlessly on both desktop and mobile devices.
- Node.js installed (v14 or higher).
- MongoDB installed and running locally or on a remote server.
- Git for version control.
- A text editor or integrated development environment (IDE) of your choice (e.g., Visual Studio Code).
-
Clone the repository:
git clone https://github.com/Rohith-Manjunath/MERN-Recipe-App.git
-
Navigate to the project directory:
cd Mern-Recipe-App
-
Navigate to the client directory:
cd client cd my-app
-
Install client dependencies:
npm install
-
Return to the project root:
cd .. cd ..
-
Navigate to server folder:
cd server
-
Create a
.env
file in the project root and configure your environment variables:PORT=2000 MONGODB_URI=mongodb://localhost/recipe-app SECRET=your-secret-key
Replace your-secret-key
with a secure secret for JWT token generation.
-
Start the development server
node index.js
The project follows a standard MERN stack folder structure:
- client: Contains the React frontend application.
- server: Contains the Express.js backend application.
- Schema: Define the MongoDB schemas and models.
- routes: Define the API routes.
- controllers: Handle route logic and interact with the database.
- middlewares: Custom middleware functions.
- db: Configuration files (e.g., database connection).
- React
- Node.js
- Express.js
- MongoDB (Mongoose)
- JSON Web Tokens (JWT) for authentication
- bcrypt for secured password hashing
Check out the live demo of the Recipe Sharing Full Stack App here.