Skip to content

Code for the server I use to get all data I need from Nadeo API

License

Notifications You must be signed in to change notification settings

ElRubioLoco/HowManyContenderAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HowManyContenderAPI

Code for the server I use to get all data I need from Nadeo API

Steps to install

On debian based OS

  1. Install python 3.11
sudo apt install python3.11
  1. Install virtualenv
sudo apt install virtualenv
  1. Create virtual environment
virtualenv -p /usr/bin/python3.11 env
  1. Activate virtual environment
source env/bin/activate
  1. Install all requirements of the server
 pip install -r requirements.txt
  1. Create src/utils/authenticate.txt file

This file only contains one line : email@adress.com:password
Email and password are the identifiers of the Ubisoft connect account you want to use

  1. Start server
python App.py

Deploy to production

  1. Install build
pip install -r src/utils/requirements.txt 
  1. Build a wheel
python -m build --wheel
  1. Find the right .whl file

Available at dist/{project name}-{version}-{python tag} -{abi tag}-{platform tag}.whl

  1. Copy this file to your production machine

  2. Set up a new virtualenv

virtualenv -p /usr/bin/python3.11 env
source env/bin/activate
  1. Install your wheel file
pip install your-wheel-file.whl
  1. Run your WSGI server with waitress
waitress-serve --call 'flaskr:create_app'

License

2023 Martin CORNU-MANSUY martin2001.cornumansuy@gmail.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Code for the server I use to get all data I need from Nadeo API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages