Skip to content

aakashdeepsil/go-contributors-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Contributors API

A GraphQL API built with Go for managing contributors, featuring MongoDB for data storage and Redis for caching and rate limiting.

Features

  • GraphQL API using gqlgen
  • MongoDB for persistent storage
  • Redis for caching and rate limiting
  • Clean architecture with separation of concerns
  • Comprehensive test coverage

Prerequisites

  • Go 1.21 or higher
  • MongoDB
  • Redis
  • Make (optional, for using Makefile)

Getting Started

  1. Clone the repository:
    git clone https://github.com/aakashdeepsil/go-contributors-api.git
  2. Install dependencies
    go mod download
  3. Copy the example environment file:
    cp .env.example .env
  4. Update the environment variables in .env as needed
  5. Run the server:
    go run cmd/server/main.go
    

Project Structure

  • cmd/: Application entry points
  • internal/: Private application code
    • config/: Configuration management
    • database/: Database connections and repositories
    • graph/: GraphQL schema and resolvers
    • middleware/: HTTP middleware
    • service/: Business logic
  • pkg/: Public libraries that can be used by external applications

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages