module
0.0.0-20230205204333-cd7ac82dc6cc
Repository: https://github.com/anishrim/go-rest-api.git
Documentation: pkg.go.dev
# README
go-rest-api
[Note: This repo is under progress]
The aim of this project is to create template layout and project for getting started wit REST API development using golang.
packages used:
- For database: postgres
- For database connection & handling: gorm
- For logging: logrus
- For api development: gorilla
Requirement for application:
- Linux system
- Docker
- golang 1.19 version
How to run application on local setup?
- create docker container for DB using following command.
docker run --name some-postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres
- Export following environment variables.
export DB_USERNAME=postgres
export DB_PASSWORD=postgres
export DB_HOST=localhost
export DB_PORT=5432
export DB_TABLE=postgres
- execute below command to start the application.
go run cmd/server/main.go
# Packages
No description provided by the author