Categorygithub.com/BoHuang-ecr/go-api
modulepackage
0.0.0-20230525102329-1fc59dc94625
Repository: https://github.com/bohuang-ecr/go-api.git
Documentation: pkg.go.dev

# README

go-api

golang rest API using fiber + postgresql

installation

  • go get github.com/gofiber/fiber/v2

  • go get github.com/joho/godotenv

  • go get -u gorm.io/gorm

  • go get -u gorm.io/driver/postgres

  • go get -u gorm.io/driver/sqlite

RUN

  • make sure 5432 port is free: sudo lsof -i -P -n | grep LISTEN
  • start a postgres instance: docker run --name postgres_db -p 5432:5432 -e POSTGRES_USER=admin -e POSTGRES_PASSWORD=admin123123! -e POSTGRES_DB=postgres_db -d postgres
  • run APP: go run main.go

ENDPOINTS

# Packages

No description provided by the author
No description provided by the author
No description provided by the author