Skip to content

yannickbilcot/game-stats-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

game-stats-api

A simple REST API server in Go using:

  • SQLite Database
  • gorilla/mux router
  • swaggo/swag API documentation

Can serve a SPA UI frontend in addition:

Installation and Run

Download the project

git clone https://github.com/yannickbilcot/game-stats-api.git
cd game-stats-api

To serve the UI frontend (optional)

# fetch the ui submodule
git submodule update --init --recursive
# build the ui
cd ui
npm install
quasar build

To generate the swagger documentation (optional)

go get -u github.com/swaggo/swag/cmd/swag
swag init

Build and start the server

go build
./game-stats-api