A personal project to learn Go by building a social media platform with JWT authentication, posts, and a Next.js frontend.
- Go backend development with Chi router
- JWT authentication and middleware
- PostgreSQL database operations
- CI/CD pipelines (Versioning/Migrations/Tests/ImageBuilder/AWS deploy)
- Backend: Go, Chi Router, PostgreSQL, JWT
- Frontend: Next.js, TypeScript, Tailwind CSS
- Database: PostgreSQL with Docker
- Go 1.25+
- Node.js 20+
- Docker
docker-compose up -dpsql -h localhost -U admin -d social -f scripts/db_init.sqlgo run cmd/api/*.goAPI runs on http://localhost:8080
cd web
npm install
npm run devFrontend runs on http://localhost:3000
POST /v1/auth/register- User registrationPOST /v1/auth/login- User loginGET /v1/users/me- Get user profile (auth required)GET /v1/posts- Get posts (auth required)GET /v1/health- Health check
- Create/edit posts
- User profiles
- Comment system
- File uploads
- Real-time updates
- Search functionality