Skip to content

luisfucros/blog-api

Repository files navigation

📘 Blog API - RESTful Personal Blogging Platform

A simple RESTful API for a personal blogging platform built with Go, Gin, PostgreSQL, and Docker.

Quick Start with Docker Compose

1. Clone the Repository

git clone https://github.com/luisfucros/blog-api.git
cd blog-api

2. Run with Docker Compose

# Build and start all services
docker-compose up --build

# Or run in detached mode
docker-compose up --build -d

3. Verify the Application

curl http://localhost:8080/health

Expected response:

{ "status": "ok" }

4. View Logs

View logs from all services

docker-compose logs -f

# Logs from a specific service

docker-compose logs -f api
docker-compose logs -f postgres 5. Stop the Application

5. Stop all services

docker-compose down

6. Stop and remove volumes (clears DB data)

docker-compose down -v

https://roadmap.sh/projects/blogging-platform-api

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published