GMCB Manga API is a Go-based RESTful API that provides manga-related functionalities, including manga information, chapters, images. It leverages AWS S3 for image storage.
- Manga Management: Create, retrieve, update, update image, and delete manga information.
- Chapter Management: Manage manga chapters, including the number of pages and images.
- Image Handling: Upload images to AWS S3.
- Go
- Docker
- Docker Compose
- AWS S3 account and configuration
-
Clone the repository:
git clone https://github.com/mendes-gmcb/gmcb-mangas.git cd gmcb-mangas
-
Build the application:
go build
- Run the migrations:
go run migrate/migrate.go
- Run the application:
./gmcb-mangas
Configure the application using environment variables or a configuration file. The following environment variables are required:
- DB_HOST: Database host to will connect
- DB_USER= Database user to will connect
- DB_PASS: Database password to will connect
- DB_PORT: Database port to will connect
- DB_NAME: Database name to will connect
- AWS_ACCESS_KEY: AWS access key
- AWS_SECRET_KEY: AWS secrete key
- AWS_REGION: AWS region of bucket
- AWS_BUCKET_NAME: AWS bucket name
- Define your manga entries, chapters, and images using the provided API routes.
- Explore the API routes for manga, chapters, images, and cover images.
To run the application using Docker:
docker-compose up --build
This will start the application, Redis server, and Nginx load balancer.
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.