This is the frontend for a personal blogging project built with React. It provides a user-friendly interface for viewing, creating, and managing blog posts.
- User authentication and authorization
- Responsive design
- View all blog posts
- Create, edit, and delete blog posts
- Comment on blog posts
- Tagging system
- Pagination for blog posts
- Node.js 18+
- npm 11+
-
Clone the repository:
git clone https://github.com/AfshanAlamEngg/coco-blogs-frontend cd coco-blogs-frontend
-
Install the dependencies:
npm install
-
Start the development server:
npm start
Open your browser and navigate to http://localhost:3000
to view the application.
src/components/
- React componentssrc/pages/
- React pagessrc/services/
- API service functionssrc/styles/
- CSS and styled componentssrc/utils/
- Utility functions
The frontend interacts with the following API endpoints:
GET /api/posts/
- List all blog postsPOST /api/posts/
- Create a new blog postGET /api/posts/{id}/
- Retrieve a specific blog postPUT /api/posts/{id}/
- Update a specific blog postDELETE /api/posts/{id}/
- Delete a specific blog postPOST /api/comments/
- Add a comment to a blog post
Contributions are welcome! Please open an issue or submit a pull request for any improvements or new features.
This project is licensed under the MIT License. See the LICENSE file for more details.