Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.61 KB

README.md

File metadata and controls

44 lines (35 loc) · 1.61 KB

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.
  • Only a GraphQL API (with a JSON POST endpoint) is being implemented so far.

Developing

Requirements

  • Go 1.11+.
  • Make to run build scripts.
  • gcc to run race detection on unit tests.

Useful links

How to run

To get an interactive API interface:

  • make gql_run
  • Go to localhost:3030/graphiql

To test HTTP endpoints:

  • make gql_run
  • Make POST requests to localhost:3030/graphql/http

Running tests:

  • make test

Running benchmarks:

  • make bench

Running in a container

  • docker build . -t graphql_server
  • docker run -p 3030:3030 -d graphql_server
  • Voila! Go to localhost:3030/graphql