Git Product home page Git Product logo

luissilva1044894 / flaskpyrezapi Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 7.0 158.38 MB

An open-source API for custom commands (Twitch), written in Python and deployed on Heroku.

Home Page: https://nonsocial.onrender.com/

License: MIT License

Python 50.17% HTML 30.15% JavaScript 17.41% Mako 0.37% CSS 1.69% Shell 0.04% Procfile 0.17%
flask flask-api flask-backend hirez hi-rez paladins paladins-api twitch nightbot open-source

flaskpyrezapi's Introduction

FlaskPyrezAPI

License Runtime Version Discord Server

Built with: Python Pyrez Flask Bootstrap 4 Font Awesome

FlaskPyrezAPI is an endpoint for custom commands (Twitch), that provides data about players, matches and others stats of the game Paladins. It uses Pyrez, my Python wrapper for Hi-Rez Studios API.

Demo Website

Key Features

  • English, Polish, Portuguese and Spanish language support.

Requirements

  • Access to Hi-Rez Studios API.

Support

For support using Pyrez, please join the official support server on Discord.

Installation

Locally

  1. Clone this repository: git clone https://github.com/luissilva1044894/FlaskPyrezAPI.git
  2. cd into it: cd FlaskPyrezAPI
  3. Create a virtualenv: virtualenv -p python venv
  4. Activate it.
  5. Install Python Dependencies: pip install --upgrade pip setuptools wheel | pip install -r requirements.txt
  6. Edit .env and replace the PYREZ_AUTH_ID and PYREZ_DEV_ID with the authId and devId that you receive from Hi-Rez Studios.
  7. Run: python manage.py db migrate
  8. Run server: python main.py runserver
  9. Go to your browser and point it towards http://127.0.0.1:5000

Deploy (Heroku) Deploy

  1. Go to Heroku and create a new app (eg: your-app-name)
  2. Install Heroku CLI
  3. heroku login
  4. git init
  5. heroku git:remote -a your-app-name
  6. Download this repo and copy all files into your-app-name folder
  7. Edit .env and replace the PYREZ_AUTH_ID and PYREZ_DEV_ID with the authId and devId that you receive from Hi-Rez Studios.
  8. heroku config:push
  9. git add .
  10. git commit -m "Going to Heroku"
  11. git push heroku master
  12. heroku run python manage.py db migrate
  13. heroku open and a window will open with your app online

Thanks

License 📝

This is an open source Open Source project provided under the MIT License, which you can view in LICENSE file.

Raw data provided by Hi-Rez Studios API and is thus their property. © 2019 Hi-Rez Studios, Inc. All rights reserved.

flaskpyrezapi's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar luissilva1044894 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flaskpyrezapi's Issues

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.