This is a full-stack web application built using the MERN stack (MongoDB, Express.js, React, Node.js). It includes a user form that sends data to a MongoDB database.
Before running this application, make sure you have the following installed:
- Node.js - Download & Install Node.js and the npm package manager.
- MongoDB Compass - Download & Install MongoDB Compass
Clone the repository to your local machine:
git clone https://github.com/siracsimsek01/noir-elegance
Then:
cd noir-elegance
Navigate to the server directory and install the dependencies:
cd server
npm install
Start the backend server:
npm start
The server should now be running on http://localhost:5000.
Navigate to the client directory from the root of the project and install the dependencies:
cd client
npm install
npm run build
Start the React development server:
npm start
The application should now be running on http://localhost:3000.
If you have been granted access to the MongoDB database for this project, you can connect to it using the MongoDB extension in Visual Studio Code. Here's how to set it up:
- MongoDB Compass - Download & Install MongoDB Compass
-
Install MongoDB Compass: If you haven't already installed MongoDB Compass, download it from the official MongoDB website.
-
Launch MongoDB Compass: Open MongoDB Compass on your computer.
-
Enter the Connection URI:
-
On the start screen, paste your connection string into the field labeled ‘Paste your connection string’.
-
The connection string typically looks like this:
mongodb+srv://<username>:<password>@<cluster-url>/<dbname>?retryWrites=true&w=majority
-
-
Initiate Connection:
- Click the 'CONNECT' button to establish a connection with your MongoDB database.
-
Interact with Your Data:
- After connecting, you'll be able to browse databases and collections, as well as view and edit documents within MongoDB Compass.
To access the main codes of the project navigate the client/src/pages for frontend, server/app.js for the backend.
With both the frontend and backend servers running, open your web browser to [http://localhost:3000]. Fill out the Reservation form either in end of the page or the link in the Navbar (Reservation) and submit it. The data will be sent to the backend server and stored in MongoDB. To see Reservation folder and files navigate /client/src/components/Reserve
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Sirac Simsek - development.simsek@gmail.com
Project Link: https://github.com/siracsimsek01/noir-elegance