ali322 / go_api_starter

fundamental starter for api service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Starter

api service starter

Get Started

#1. clone this repository

#2. install all dependencies
make install

#3. start project
make start

Release binary

#1. change arch or os in Makefile if needed

#2. build new binary release
make build

Deploy service

#1. upload binary file
scp -C api-starter config.yml api.service user@deploy.server:/path/to/app/

#2. copy service file into systemd config directory
cp app.service /etc/systemd/system/

#3. reload and start daemon  xr_scene service
systemctl daemon-reload && systemctl start api

About

fundamental starter for api service


Languages

Language:Go 92.1%Language:Makefile 7.9%