This is a simple blog website built with Go, Gin, and MongoDB.
- User registration
- User login and authentication
- Create, read, update, and delete blog posts
- View all blogs
- View user profile
- Authentication middleware for protected routes
- Role-based access control (superuser and admin)
- User password change (Premium)
- Email verification (Premium)
- Google authentication (Premium)
- Commenting on blog posts (Premium)
- Reactions on blog posts (Premium)
Premium features are available in the paid version of the application.
For detailed information about the API routes and methods, please refer to the API Documentation.
- Go 1.16 or higher
- MongoDB
-
Clone the repository:
git clone https://github.com/fahimaloy/blogo.git
-
Install dependencies:
go mod download
-
Set up your MongoDB connection by updating the configuration in config.go.
-
Build and run the application:
go run main.go
-
Open your web browser and navigate to http://localhost:8080 to access the blog website.
Contributions are welcome! Please feel free to submit a pull request.
This project is licensed under the MIT License.