This project is a simple web application that allows users to add and view comments. Users can input their name and comment, and the comments are displayed in the UI. The project consists of a React frontend for the user interface and a Node.js backend to handle data storage and retrieval from a MongoDB database.
- Add comments with a userID and message.
- View existing comments from the database.
- Frontend built using React.
- Backend powered by Node.js and MongoDB.
-
Clone the repository to your local machine: git clone https://github.com/MohammedNayeemE/CommentSection-with-React
-
Navigate to the project directory:
-
Install frontend and backend dependencies:
cd client npm install
cd ../server npm install
-
Start the backend server:
-
Start the frontend development server:
cd ../client npm start
- Open your browser and navigate to
http://localhost:5173
to access the application.
client
: Contains the React frontend code.server
: Contains the Node.js backend code.
- React
- Axios
- Express
- MongoDB
- Cors
Contributions are welcome! If you find a bug or have an enhancement in mind, feel free to open an issue or submit a pull request.