Giter Club home page Giter Club logo

nba_stats's Introduction


NBA Simulator

NBA Simulator Project With Go

Table of Contents
  1. Getting Started
  2. API Reference
  3. Contact

Getting Started

Prerequisites

  • Golang
  • Docker

Installation

  1. Clone the repo
    git clone https://github.com/muhammedikinci/nba_stats
    cd ./nba_stats
  2. Build docker compose file
    docker compose build --no-cache
  3. Run
    docker compose up
  • API can be restarted many times until MySQL is ready to accept the connection
    restart: on-failure

Installation Without Docker

This action needs the installation of PostgreSQL manually.

  1. Clone the repo

    git clone https://github.com/muhammedikinci/nba_stats
    cd ./nba_stats
  2. Install Go dependencies

    go mod download
  3. Start MYSQL Service and Create nba database

  4. Change database root password from repository

  5. Start API without build

    go run .

API Reference

GET /simulation

Getting current simulation status

curl --location --request GET '/simulation'

POST /simulation/start

Starting simulation

curl --location --request POST '/simulation/start'

DELETE /simulation/stop

Stopping simulation

curl --location --request DELETE '/simulation/stop'

GET /simulation/current-round

Getting current week stats.

curl --location --request GET '/simulation/current-round'

Contact

Muhammed İKİNCİ - [email protected]

nba_stats's People

Contributors

muhammedikinci avatar

Stargazers

 avatar

Watchers

 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.