Giter VIP home page Giter VIP logo

leaderboard-backend-go's Introduction

leaderboard-backend

An open-source community-driven leaderboard backend for the gaming community.

Links

Tech-Stack Information

  • This repository only contains the backend, and not the UI for the website.
  • GoLang is used for implementing the backend.
  • JSON API with JWT Authentication

Developing

Requirements

  • Go 1.16+.
  • Make to run build scripts.
  • Docker to run the database and admin interface.

Optional

  • golangci-lint to run CI linting on your machine.
  • staticcheck for linting that will integrate with your editor.
  • gcc to run race detection on unit tests.

Useful links

  • VSCode is a pretty good editor with helpful GoLang plugins.
  • GoLand is JetBrains' Go offering and is very fully featured.
  • A Tour of Go is a great place to learn the basics of how to use GoLang.
  • Effective Go is the best place to check to learn recommended best practices.
  • Set up git is GitHub's guide on how to set up and begin using git.
  • How to Contribute to an Open Source Project is a useful guide showing some of the steps involved in opening a Pull Request.

How to run

To start the postgres docker container

  • docker-compose up -d
  • Go to localhost:1337 for an Adminer interface

To test HTTP endpoints:

  • make run or make build and run the binary
  • Make requests to localhost:3000/api/v1 (or whatever port from .env)

Running tests:

  • go test ./...

Running tests with coverage:

  • make test

Running tests with race detection (requires gcc):

  • make test_race

Running benchmarks:

  • make bench

leaderboard-backend-go's People

Contributors

zdylag avatar frozensake avatar ragecage64 avatar matt-hurd avatar capitainetoinon avatar squiddot avatar zysim avatar akleemans avatar squareman avatar weilianchu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.