Skip to content

davidlinye/GradualOverpy

Repository files navigation

Note: this is a very old project. Uploaded here as access to gitlab might cease for me. It uses Python 3.6 and it was tested in Overwatch 1. OverPy itself has had many updates as well, so don't expect this to work first try. However, feel free to clone and experiment.

Gradual OverPy

To run the server:

  1. enter virtual environment by executing the following line:

source ./venv/bin/activate

  1. run the server by executing the run.sh bash file or with the following commands:

(only once)

  • export FLASK_APP=Application.py

  • flask run

Now you can access the program locally by going to http://localhost:5000

  1. when finished, deactivate virtual environment with:
  • deactivate

Advanced run (to make the website accessible from everywhere):

  1. enter virtual environment
  2. make sure you port forwarded the port 5005 (not sure if TCP, UDP or both, try things out)
  3. run the server by executing the globalrun.sh bash file. you can use screen if you want to exit the terminal whilst leaving the server running
  4. if screen doesn't work (or you're just lazy), execute nohuprun.sh instead. The logs will be put in log.txt.
  5. to kill the server with the run mentioned above, execute killnohup.sh.

Initial installation:

A venv folder should be there with the files. If you want to create an entire new venv folder:

  1. sudo apt-get install python3-venv
  2. python3 -m venv venv
  3. virtualenv venv

After entering the virtual environment, install the following:

  1. sudo apt install python3
  2. sudo apt install python3-pip
  3. sudo apt install python3-flask

(the following list of commands can also be executed with ./install)

  1. pip3 install flask
  2. pip3 install flask-sqlalchemy
  3. pip3 install flask-migrate
  4. pip3 install flask-login
  5. pip3 install flask-wtf
  6. pip3 install email-validator

To create (or reset) the database with user credentials:

  • ./createdb.sh

(this website has a database system, but currently it has no use. This could be used to save programs in the future)

If people were logged in before the reset, they need to reset their cookies, since this will lead to crashing the program.

Running website also available on http://overpy.privatedns.org:5005/ (if the website is down, contact davidlin@live.nl, Discord Davidlinye#7038)

About

Migrated from GitLab to here. Original project stems from feb 2021 - jul 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors