authentication

command module
v0.0.0-...-6e93265 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 9 Imported by: 0

README

Authentication example app

This is a registration and authentication API example using GoCondor framework

Routes

Routes are located in http/routes.go

	router.Get("/", Auth, handlers.HomeShow)
	router.Post("/signup", handlers.UsersSignup)
	router.Post("/signin", handlers.UsersSignin)
	router.Get("/signout", handlers.UsersSignout)

Running the app

  1. Clone the examples repository and next cd into the Authentication app
  2. Add mysql and redis connection information to the .env file
  3. Start your mysql server and create a database with the name authentication
  4. Start your redis server
  5. Run go mod tidy from within the app dir
  6. Start the app by running the following command go run main.go
  7. Open up your browser and navigate to localhost:8000

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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