Skip to content
/ MicroKey Public template

A lightweight, scalable authentication microservice that connects Django and Gin applications, making user management and security effortless and efficient.

Notifications You must be signed in to change notification settings

vivekjha1213/MicroKey

Repository files navigation

MicroKey

Version License Python Go

MicroKey is an open-source, microservices-based application that integrates a Django backend with a Golang Gin service, providing a seamless and scalable architecture for authentication and API management.

  _____________________
 /  Microservices       \
|   ____     ____        |
|  |    |   |    |       |
|  |Django  | Gin|       |
|  |____|   |____|       |
|                        |
 \______________________/
        Spinning...

Microservices Architecture

MicroKey leverages a microservices architecture to ensure scalability, maintainability, and flexibility:

  1. Django Auth Service: Handles user authentication and management.
  2. Golang Gin API Service: Provides lightweight, high-performance API endpoints.

Features

Django Golang SQLite Docker GitHub

  • Django Backend: Handles user authentication and serves REST APIs.
  • Golang Gin Service: Lightweight middleware for authentication.
  • SQLite Database: Lightweight, serverless database for easy setup and testing.
  • Docker Support: Easy to set up and run using Docker Compose.
  • GitHub Integration: Version control and collaboration.
  • Open Source: Contributions are welcome and encouraged!

Technology Stack

Backend Database Containerization Version Control

Project Structure

MicroKey/
├── Dockerfile.django
├── Dockerfile.gin
├── docker-compose.yml
├── auth-service-django/
│   ├── apps/
│   │   └── accounts/
│   ├── config/
│   ├── manage.py
│   ├── db.sqlite3
│   ├── requirements.txt
│   └── myenv/
├── gin-auth-api/
│   ├── main.go
│   ├── middleware.go
│   ├── go.mod
│   └── go.sum
└── README.md

GitHub Integration

GitHub repo GitHub issues GitHub pull requests

Getting Started

Prerequisites

Docker Docker Compose

Installation

  1. Clone the repository:

    git clone https://github.com/vivekjha1213/MicroKey.git
    cd MicroKey
  2. Build and run the services:

    docker-compose up --build
  3. Access the services:

Development

Django Development

cd auth-service-django
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver

Golang Gin Development

cd gin-auth-api
go run main.go

Contributing

We welcome contributions! Here's how you can contribute:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

License

MIT License

Get Involved

GitHub Stars Discord Twitter Follow

Let's build something amazing together!

About

A lightweight, scalable authentication microservice that connects Django and Gin applications, making user management and security effortless and efficient.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages