Welcome to the Restaurant Project! This project is designed to showcase a restaurant website with a React frontend, Express backend, and MongoDB database.
To install and run this project locally, follow these steps:
Make sure you have the following installed on your machine:
- Node.js
- npm (Node Package Manager)
- MongoDB (Community Edition or Atlas)
-
Clone this repository to your local machine.
-
Navigate to the backend directory in your terminal.
-
Install the backend dependencies by running:
bash npm install
-
Create a .env file in the backend directory with the following content:
env PORT=3001 MONGODB_URI=<your_mongodb_connection_string>
Replace <your_mongodb_connection_string> with your actual MongoDB connection string.
-
Start the backend server by running:
bash npm start
This will start the Express server at http://localhost:3001.
-
Navigate to the frontend directory in your terminal.
-
Install the frontend dependencies by running:
bash npm install
-
Create a .env file in the frontend directory with the following content:
env REACT_APP_API_URL=http://localhost:3001/api
-
Start the frontend development server by running:
bash npm start
This will start the React development server at http://localhost:3000.
Once both the backend and frontend are running, you can access the application by opening http://localhost:3000 in your web browser.
feel free to explore this restaurant website and see various different features built on this website
If you'd like to contribute to this project, please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.