simple-go-api

command module
v0.0.0-...-48f0708 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

README

simple-go-api

Example of Rest API built with gin-gonic, gorm, and mongo-go-driver

For Fun

Table of contents:

Requirements

  • Golang (duh)
  • MongoDB

Getting started

  1. start docker
sudo systemctl start docker.service
  1. mongodb
docker run --name fdm-mongo -p 27017:27017 -d mongo

if you already set it up

docker start fdm-mongo
  1. redis
docker run -d -p 6379:6379 --name fdm-redis redis

References

  1. https://github.com/wangzitian0/golang-gin-starter-kit
  2. https://github.com/Massad/gin-boilerplate
  3. https://www.nexmo.com/blog/2020/03/13/using-jwt-for-authentication-in-a-golang-application-dr

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