Welcome to the Blogging Website project! This project includes both frontend and backend components for creating a full-fledged blogging platform. The backend is built on the Hono library and includes features such as posting blogs and authentication using tokens. The frontend is developed using React.
- Hono Library: The backend is built on the Hono library, providing a robust foundation for handling HTTP requests, authentication, and more.
- Blog Posting: Users can create, read, update, and delete blog posts.
- Authentication: Authentication is implemented using tokens for secure access to the platform's features.
- Prisma Integration: Prisma is used for database management and ORM functionalities.
- React: The frontend is built using React, a popular JavaScript library for building user interfaces.
- User Interface: A modern and responsive user interface allows users to easily navigate and interact with the blogging platform.
- Components: Modular components enable code reusability and maintainability.
To run the project locally, follow these steps:
- Clone the repository:
- Navigate to the project directory.
- Install dependencies for both frontend and backend.
- Ensure you have a database set up and running. You can use any supported database, such as PostgreSQL, MySQL, or SQLite.
- Set up the database connection link in the backend's
.env
file. You can use the.env.example
file as a template.
- Generate the Prisma client by running the following command from the backend directory:
To start the backend server, run the following command from the backend
directory:
npm run dev
To start the frontend development server, run the following command from the frontend
directory:
npm run dev
Visit http://localhost:3000
in your web browser to view the frontend application.
Contributions are welcome! If you'd like to contribute to the project, please follow these steps:
-
Fork the repository.
-
Create a new branch for your feature or bug fix.
-
Make your changes and commit them.
-
Push your changes to your fork.
-
Open a pull request on the original repository.
This project is licensed under the MIT License - see the LICENSE file for details.