Skip to content

francoabaroa/authgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication Service in Go

This is a simple experimental authentication service built in Go. It includes functionalities such as user registration, login, and viewing all users.

Requirements

  • Go (v1.16 or later)
  • Postgres

Environment Variables

You need to set the following environment variables for database configuration and security:

  • DB_HOST: The hostname of your Postgres database.
  • DB_PORT: The port number where your Postgres is running.
  • DB_USER: The username of your Postgres database.
  • DB_PASSWORD: The password of your Postgres database.
  • DB_NAME: The name of your Postgres database.
  • SECRET_KEY: The secret key used for session cookies.

You can set these variables in a .env file at the root of your project.

Running the Project

  1. Make sure you have created your database locally:

  2. Run the Go server in the terminal:

go run cmd/server/main.go

This will start the server on localhost:8080.

About

Simple authentication service built in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published