Go-Auth-Redis-Postgres-API

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2021 License: MIT

README

Go-Auth-Redis-Postgres-API


Go-Auth-Redis-Postgres-API is a RESTful Authentication API built with Go, Fiber framework JWT, Postgres, Redis & more! This project provides Rest API and was made for fun/practicing to learn about Fiber Framework. Feel free to use/modify or send a pull request.

Contents

Features

  • CRUD Functionality
  • JSON payload request/responses
  • Custom JWT middleware (highly inspired in fiber middleware)
  • PostgreSQL & Redis for persistance/cache storage
  • UUID
  • Testing
  • Docker (Coming soon! 🚀)
  • Clean Code
Requirements

  • Go 1.16+.
  • PostgreSQL & Redis installed on your system.
  • Copy .env.example and rename it to .env & set your enviroment variables per usual.
Usage

  1. Download and install dependencies with go mod

    • $ go mod download
  2. Running the project (local).

    • $ go run github.com/BravoAndres/Go-Auth-Redis-Postgres-API/cmd/
Todo

  • Add Gorm
  • Implement custom zap logger
  • Migrations
  • API Docs (Swagger)
  • Add Tests
  • CI/CD
  • Docker
  • Add simple frontend with Vue.js
Built With

License

MIT License.

Directories

Path Synopsis
internal
app
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL