module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Mar 13, 2022
License: GPL-3.0
Opens a new window with license information.
README
¶
Golang Startup
Golang basic web application structure using an onion architecture approach.
1. Config
Before to run application you may setup .env with Config values.
Check out the following tables to know all Config parameters detailed.
| Parameter |
Description |
Type |
Default |
Required |
DATABASE |
Database URL address. |
string |
|
YES |
HOST |
HTTP server host number. |
string |
|
NO |
PORT |
HTTP server port number. |
string |
|
YES |
2. Run Application
After define env variables values, run the following commands to start web application server.
go run ./cmd/server/main.go
Directories
¶
cmd
|
|
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.