GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MDF05/VotePeace-Backend: High-performance API server for VotePeace, powered by Go and Fiber. Handles secure authentication, vote processing, real-time analytics, and data persistence using GORM & SQLite

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
controllers
controllers
 
 
database
database
 
 
models
models
 
 
routes
routes
 
 
.gitignore
.gitignore
 
 
API_DOCUMENTATION.md
API_DOCUMENTATION.md
 
 
ARCHITECTURE.md
ARCHITECTURE.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DATABASE_SCHEMA.md
DATABASE_SCHEMA.md
 
 
DEPLOYMENT.md
DEPLOYMENT.md
 
 
DISCLAIMER.md
DISCLAIMER.md
 
 
ENVIRONMENT.md
ENVIRONMENT.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ROADMAP.md
ROADMAP.md
 
 
SECURITY.md
SECURITY.md
 
 
STYLE_GUIDE.md
STYLE_GUIDE.md
 
 
TESTING.md
TESTING.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
main.go
main.go
 
 
server.exe
server.exe
 
 
votepeace.db
votepeace.db
 
 

Repository files navigation

VotePeace Backend

VotePeace Backend Status Go Version License

VotePeace-Backend is the robust, high-performance server-side application powering the VotePeace election platform. Built with Go (Golang) and the Fiber framework, it provides a secure REST API for managing campaigns, candidates, and real-time voting data.

🚀 Backend Overview

The backend is designed as a modular monolith, prioritizing performance and simplicity. It handles:

  • User Authentication: Secure registration and login (JWT/Session).
  • Campaign Management: CRUD operations for election campaigns.
  • Vote Processing: Secure and transactional vote recording.
  • Real-time Analytics: Aggregating vote counts and statistics.

✨ Features

  • High Performance: Built on Fiber (Express-inspired) for extreme speed.
  • ORM Integration: Uses GORM for database interactions with SQLite (easily switchable to PostgreSQL/MySQL).
  • RESTful API: Clean, predictable endpoints.
  • Secure: Validation, CORS configuration, and password hashing (bcrypt).
  • Database Seeding: Automatic admin and demo data generation.

🛠 Tech Stack

  • Language: Go (Golang)
  • Framework: Fiber v2
  • Database: SQLite (Production-ready via GORM)
  • ORM: GORM
  • Auth: Custom Auth (Bcrypt for hashing)

📦 Installation

Prerequisites:

  • Go 1.21+
  • Git
# Clone the repository
git clone https://github.com/MDF05/VotePeace-Backend.git

# Navigate to the project directory
cd VotePeace-Backend

# Install dependencies
go mod tidy

🚀 Running the Server

Development Mode

# Run directly
go run main.go

# OR using Air (if installed) for live reload
air

The server will start on http://localhost:3000.

⚙️ Environment Variables

Copy .env.example to .env (if applicable) and configure your variables. See ENVIRONMENT.md for details.

📚 Documentation

Detailed documentation for developers and specific domains:

Document Description
ARCHITECTURE.md System design, folder structure, and data flow.
API_DOCUMENTATION.md Detailed API reference (Endpoints, Requests, Responses).
DATABASE_SCHEMA.md Database models, relationships, and ERD description.
DEPLOYMENT.md Guides for deploying to production.
ENVIRONMENT.md Configuration and environment variable reference.
TESTING.md Running unit and integration tests.
STYLE_GUIDE.md Go coding conventions and best practices.
CONTRIBUTING.md Guidelines for contributing to the project.
SECURITY.md Security policies and vulnerability reporting.
CODE_OF_CONDUCT.md Community standards and expectations.
CHANGELOG.md History of changes and versions.
ROADMAP.md Future features and milestones.
DISCLAIMER.md Legal disclaimers.
LICENSE MIT License terms.

🔑 API Access

The API is accessible at http://localhost:3000. See API_DOCUMENTATION.md for full usage details.

🔐 Security

We take security seriously. Please review SECURITY.md for our security policy and reporting instructions.

📄 License

Distributed under the MIT License. See LICENSE for more information.

👤 Maintainer

Muhammad Dava Fahreza

  • GitHub: @MDF05

About

High-performance API server for VotePeace, powered by Go and Fiber. Handles secure authentication, vote processing, real-time analytics, and data persistence using GORM & SQLite

vote-peace-backend.vercel.app/

Topics

apiauthenticationbackendfibergogofibergolanggormjwtrest-apisecure-votingsqlite

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.