Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Raion-App-Programmer/Raion-Battlepass-2025

Repository files navigation

🦁 Raion Battlepass 2025 (Backend)

This is a RESTful API for a simple social media application. It allows users to manage their posts, including creating, updating, and deleting posts, and provides authentication using JWT. The API is built using the Fiber framework and interacts with a PostgreSQL database.

🚀 Features

  • User Authentication: Secure user authentication using JWT.
  • Post Management: Create, update, delete, and retrieve posts with ease.
  • Scalable Architecture: Designed for scalability and maintainability.
  • Monitoring: Integrated with Prometheus for metrics and monitoring.
  • API Documentation: Swagger UI for exploring and testing API endpoints.

🛠️ Tech Stack

Go PostgreSQL Docker DigitalOcean Prometheus Swagger Vitepress

📂 Project Structure

.
├── cmd
│   ├── index.html
│   └── main.go
├── config
│   ├── config.go
│   ├── metrics.go
│   └── migration.go
├── db
│   └── migrations/
├── internal
│   ├── di/
│   ├── domain/
│   ├── handler/
│   ├── middleware/
│   ├── repository/
│   ├── routes/
│   └── service/
├── pkg
│   ├── request/
│   └── response/
├── public
│   └── uploads/
├── vendor/
├── vitepress
│   ├── Dockerfile
│   ├── docs
│   ├── index.md
│   ├── package-lock.json
│   ├── package.json
│   ├── sticker.png
│   └── vite.config.js
├── Dockerfile
├── docker-compose.yaml
├── docs/
├── go.mod
├── go.sum
├── prometheus.yaml
├── README.md
└── wait-for-it.sh

🏁 Getting Started

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/elginbrian/Raion-Battlepass-2025.git
    cd Raion-Battlepass-2025
  2. Set up the environment variables:

    Copy the .env.example file to .env and configure the required variables.

  3. Start the application:

    docker compose build
    docker compose up
  4. Access the application via:

    localhost:8084

About

Backend for the Raion Battlepass 2025 at App Programmer Division

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages