GithubHelp home page GithubHelp logo

opjj-wanna-be's Introduction

OPJJ-wanna-be

Functional requirements:
  • View summoner stats and matches
  • Update summoner stats and matches
Used Riot APIs
  • SUMMONER-V4
  • LEAGUE-V4
  • MATCH-V5
Used libraries:
  • sqlite3

Setup

  1. Zainstaluj node (w projekcie używałem node v16.13.2 z npm 8.3.2)
  2. mkdir projekt
  3. cd projekt
  4. git clone https://github.com/x3voo/OPJJ-wanna-be
  5. Wejdź na https://developer.riotgames.com/ i zaloguj się
  6. Kliknij "Regenerate API Key" i skopiuj "DEVELOPMENT API KEY"
  7. W riotapi.js zmień
    • var api_key = "<DEVELOPMENT API KEY>";
  8. Uruchom server node server.js
  9. Strona bedzię widoczna na adresie http://localhost

Preview

Logic

Get summoner:

  1. Check if summoner exists in DB
  2. If not
    • get data from API
    • update DB
    • return data from DB
  3. If does not get returned from API
    • return "USER_DEOS_NOT_EXISTS"
  4. If exists
  5. Return data from DB

Update summoner (assuming he exists):

  1. Update summoner stats
  2. Get list of matchIds from API and update DB
    • if there are no games, return "NO_MATCHES"
  3. Get details about matches from matches list and send it to DB
  4. Get summoner stats and matches from DB

opjj-wanna-be's People

Contributors

x3voo avatar

Watchers

 avatar

Forkers

trellixvulnteam

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.