This repository contains the backend infrastructure and code for setting up a blog system with a RESTful API. The system uses AWS SQS (Simple Queue Service) for handling asynchronous tasks, Redis for caching frequently accessed data, and PostgreSQL as the persistent database.
Before you begin, make sure you have the following prerequisites installed:
Follow these steps to set up and run the blog infrastructure:
-
Clone this repository to your local machine:
git clone https://github.com/joshjms/monokrom.git cd monokrom
-
Create an
.env
file in the root directory of the project to configure your environment variables. -
Create files
backup/
andcache/
in the root directory -
Build and start the Docker containers using
docker-compose
docker-compose up -d
-
Run the Go application
go run .
Your application should be running at localhost:3000
.
-
POST
-/post
Creates a new post. -
GET
-/post/:slug
Gets a post.