CloudService is a Python DRF for enabling services like a central authentication/identity service for the F4MP mod.
First install a tool for creating virtual python enviorments e.g https://pypi.org/project/virtualenv/
- Download the code
- Setup the virtual env
virtualenv venv
- Install the required packages
pip install -r requirements.txt
- Run database migrations
python manage.py migrate
- Collect static files
python manage.py collectstatic
- You need to register an API key here: https://steamcommunity.com/dev/apikey
- Rename
example.env
to.env
and edit the values a.DATABASE_URL=sqlite:///db.sqlite3
b.SECRET_KEY=<replace with secure random string>
c.STEAM_KEY=<replace with steam key provided in step 5>
d.ADMIN_PATH=<replace with a random string>
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please made sure any changes or additions have adequate test coverage.
Tests can be run by simply running python manage.py test