goselflearn

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

GoSelfLearn

My First golang mvc sample with simple blog post concept

Requirements

  • Docker (v20 or later)
  • Docker Compose (v2 or later)
  • Go (v1.19.x or later)

How to run

1.Database

The project requires a postgres database. So, first run docker-compose file to make postgres database up and running:

make run_compose
2.Environment variables

The project use .env files. Copy app.env.sample to app.env and fill the field with proper values

3.Run in dev mode

Run this command in project root directory

make dev

This command checked that air is installed or not and if not exists, install it for you and then run the project by the property you defined in app.env

How to build

In order to build project for your target host, run below command:

make build GOOS=linux GOARCH=amd64

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址