Skip to content

A login api written in Go, GIN and GORM using Sqlite3 as data source. The middelware uses JWT and cookies for authentication.

Notifications You must be signed in to change notification settings

anvaa/go-login-api

Repository files navigation

go 1.22.3
A login api written in Go, GIN and GORM using Sqlite3 as data source. The middelware uses JWT and cookies for authentication.


Usage:

  • clone the reposetory
  • cd into go-login-api
  • Execute: go run .
  • data/app.db and .app will be created on first run
  • First user to sign up will be admin

Before release:

  • Remeber to set GIN_MODE="release" in .app

  • Set https=0 if you want to run http

  • Hope you enjoy it. Good luck!

About

A login api written in Go, GIN and GORM using Sqlite3 as data source. The middelware uses JWT and cookies for authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published