Website: dtat.hampl.space
Bot: invite
API: Postman
- To run this application, you will need an API key for Rockbite's API. You can get one by contacting one of Rockbite's representatives on Discord, or Reddit.
- Create a virtual environment with Python>=3.7 (older versions might work as well, but it was not tested)
- Add these lines at the end of the activation script:
export FLASK_APP=dtat export FLASK_DEBUG=1
- Enter into virtual environment
- Install requirements
pip install -e .
- Create a file named "privateConfig.py" within the "dtat" directory, and insert following line into this file:
You can also insert any other variables, which will rewrite the values in the defaultConfig.py.
ROCKBITE_TOKEN = "Token you gained from Rockbite"
- You will also need to setup your database with:
If you are using the default SQLite DB it will be created implicitly. Otherwise, for example if you are using PostgreSQL, you will need to create the DB first.
flask db upgrade
- You are now all set and you can start the server with following command:
This server will be running on default Flask port 5000 and it will be accessible only from localhost, which you can change by using
flask run
--port=5001
and--host=0.0.0.0
- If you want to contribute to the main repository please ensure, that your code is following the PEP8 convention. You can do that with the use of flake8 and autopep8, which you can install using
pip install -r dev-requirements.txt
, after activating your virtual environment. - Also please make sure, that your code passes all current tests by running
python setup.py pytest
- If you create any new functionality please write tests for it
- To generate documentation you will need to install requirements by
pip install -e .
andpip install sphinx
. - Move into the
docs
directory and usemake html
- Your documentation is now generated in the
docs/build/html
directory
If you would like to use current API methods or just view them, you can do so here.
If you have found a bug, or you have an idea for new feature please create an issue here on github. You can also contact me using email: dtat@hampl.space