Skip to content

A project utilizing the MVC architecture, Golang, MongoDB, and authentication. It is capable of managing user sign-in, sign-up, retrieval of users by ID and email, user updates, and user deletions. It is designed to be a foundation for future microservices integrated into other projects.

Notifications You must be signed in to change notification settings

bellacbs/authentication-go

Repository files navigation

Authentication - Golang

About   |   What works   |   In development   |   Requirements   |  

📓 About

🚀 Project to practice MVC architecture using Golang and MongoDB

🛠 Technologies and programming languages

The following libraries and languages were used in the project's construction:

  • Go
  • Gin-gonic
  • Makefile
  • Traslator
  • Validator
  • Docker Compose whith Mongodb
  • zap package from uber
  • jwt

✔️ What works

  • Model, view, controller, repository;
  • Login User;
  • Create User;
  • Get User By ID;
  • Get User By Email;
  • Delete User;
  • Middleware for authentication;
  • Docker for mongoDB;
  • Docker image for dev;
  • jwt authentication;

🚧 In development

  • tests;
  • Docker image for deploy;

↩️ Prerequisites

Before you start, you will need to have the following tools installed on your machine: Git, Go, Docker. Additionally, it's good to have a code editor to work with, such as VSCode

🏁 Running the project

# Clone this repository

# To start
$ docker compose up


# The server will start on port 8080 - <http://localhost:8080>
# To see mongoDB database using mongo-express, can use por 8081, username and password = admin - <http://localhost:8081>

Go back to the top

About

A project utilizing the MVC architecture, Golang, MongoDB, and authentication. It is capable of managing user sign-in, sign-up, retrieval of users by ID and email, user updates, and user deletions. It is designed to be a foundation for future microservices integrated into other projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published