The code of conduct is described in CODE_OF_CONDUCT.md
.
All change happen through pull requests. We actively welcome your pull requests and invite you to submit pull requests directly here, and after review, these can be merged into the project.
- Fork the repository and create your branch.
- If you've added code that should be tested, add some tests.
- Make sure to describe what your new code or pull request does.
Install Flask:
- All: Run
pip install flask
orpip3 install flask
depending on your systems configuration.
Install SASS:
- macOS: Run
brew install sass/sass/sass
. - All: Run
npm install -g sass
.
Starting SASS:
Run sass --watch minance/static/styles/main.scss minance/static/styles/main.css
from the root project directory.
Install PostgreSQL:
- macOS: Run
brew install postgresql
. - Windows: https://www.postgresqltutorial.com/install-postgresql/
- Linux: https://www.postgresqltutorial.com/install-postgresql-linux/
Start PostgreSQL:
- macOS: Run
brew services start postgresql
. - Windows: Start PostgreSQL through the control panel or run
net start postgresql-{version}
- Linux: Run
systemctl start postgresql
.
Create a database named minancedb
:
$ psql -U postgres
postgres=# CREATE DATABASE minancedb;
- Supply
minance/secrets.py
with a valid Hypixel API key.
## minance/secrets.py
API_KEY="INSERT_API_KEY_HERE"
- Specify the postgres password in
instance/flask.cfg
. - Setup a virtual environment
python -m venv venv
from the root directory and active itsource venv/bin/activate
. - Install python requirements via
pip install -r requirements.txt
. - Run
python run.py
from the root project directory.