simple-post-app

module
v0.0.0-...-9896131 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT

README

This code template is originally designed and written by Azizbek Hojimurotov and other contributers Please don't delete or edit this part and license.

go-gin-basicauth-monolithic-template

Being developed...

Instructions to run the source code

Follow the instractions to run the code in your local machine. MakeFile, Docker engine and docker compose should be installed in your local machine. Make sure that you write all needed environment variables into /config/.env file

To run the program

make compose_up

To stop the program

make compose_down

After program is started successfully, you can check if it is running using this address.

http://localhost:8000/v1/swagger/index.html
Setting environment variables for gitlab and github actions

These environment variables can be saved different places according to your OS configurations. It can be stored in .zshrc, .bashrc, .profile files.

GITHUB_USERNAME="your_github_username"
GITHUB_PERSONAL_ACCESS_TOKEN="your github personal access token."
GITLAB_USERNAME="your_gitlab_username"
GITLAB_PERSONAL_ACCESS_TOKEN="your gitlab personal access token."

Directories

Path Synopsis
api
docs
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
pkg
db
Package postgres implements postgres connection.
Package postgres implements postgres connection.
etc

Jump to

Keyboard shortcuts

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