kabirnayeem99 / hanafi_fiqh_qa

Backend for Hanafi Fiqh QA site.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go
Backend Template

Clean architecture based backend template in Go.

Makefile

Makefile requires installed dependecies:

$ make

Usage: make [command]

Commands:
 rename-project name={name}    Rename project
 
 build-http                    Build http server

 migration-create name={name}  Create migration
 migration-up                  Up migrations
 migration-down                Down last migration

 docker-up                     Up docker services
 docker-down                   Down docker services

 fmt                           Format source code
 test                          Run unit tests

HTTP Server

$ ./bin/http-server --help

Usage: http-server

Flags:
  -h, --help               Show context-sensitive help.
      --env-path=STRING    Path to env config file

Configuration is based on the environment variables. See .env.template.

# Expose env vars before and start server
$ ./bin/http-server

# Expose env vars from the file and start server
$ ./bin/http-server --env-path ./config/env/.env

Request Collection

License

This project is licensed under the MIT License.

About

Backend for Hanafi Fiqh QA site.

License:MIT License


Languages

Language:Go 95.8%Language:Makefile 4.2%