This project is a web application built using JavaScript, npm, and React. It includes server-side functionality for handling notifications, user-written blogs, and blog deletion.
- Clone the repository:
git clone https://github.com/4zeddine/BlogChronicle.git
- Navigate to the project directory:
cd BlogChronicle
- Install the dependencies:
npm install
- Start the server:
npm start
- Open your browser and navigate to
http://localhost:PORT
(replacePORT
with the actual port number).
- POST /notifications: Retrieve notifications for the authenticated user.
- POST /all-notifications-count: Get the count of all notifications for the authenticated user.
- POST /user-written-blogs: Retrieve blogs written by the authenticated user.
- POST /user-written-blogs-count: Get the count of blogs written by the authenticated user.
- POST /delete-blog: Delete a blog by its ID.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes and commit them:
git commit -m "Add some feature"
- Push to the branch:
git push origin feature-branch
- Open a pull request.
This project is licensed under the MIT License.