Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

VATEUD/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VATEUD API

VATEUD API that's used by most of our websites.

Usage

Requirement - Go

  1. Copy and edit the env file
cp .env.example .env
  1. Migrate the tables (you can find them here)
mysql -u username -p database < api/api.sql
  1. Build the API
go build cmd/api/main.go
  1. Start/Restart the daemon service (a simple example can be found here)

Start

sudo service name_of_the_service enable && sudo service name_of_the_service start

Restart

sudo service name_of_the_service restart

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT