Heroku Hosting Here (Coming Soon)
- Python version 3.9+. You can check if you have this installed with
python -V
- Pip or pip3. You can check with
pip -V
- Set up your venv in the project directory (optional)
- Navigate to the project directory
Pokemon530
- Create a
.env
file here as this project requires a Django SECRET_KEY and a GOOGLE_API_KEY to properly function - For your
.env
file, open a text editor and format it to look like this
# Pokemon530/Pokemon530/.env
SECRET_KEY=[YOUR_KEY]
GOOGLE_API_KEY=[YOUR_KEY]
- Run the following commands
$ cd Pokemon530
$ pip install -r requirements.txt # Download all python dependencies for the project
$ python manage.py migrate # Migrate models to your local database
$ python manage.py runserver # Start up the project using Django
NOTE:
- You don't need to run
python manage.py migrate
if you've migrated previously - The app should be running locally in port :8000 by default
- If not, check to make sure that port 8000 is open on your localhost
- You will need to add at least one animal and one robot in order for the battle system to work
All tests are stored in PseudomonGo/tests.py
and in PseudomonGo/tests
To run the test suite:
$ python manage.py test # runs the main tests.py
$ python manage.py test PseudomonGo/tests # runs unit tests in /tests
Most API access is restricted to authenticated users for security reasons. You may need to create an admin user to access them
Head over to /admin and login. You should be able to access most API routes at /api if done correctly. Some APIs are not listed there so check out PseudomonGo/urls.py
- For prod releases -- Set
DEBUG = False
to disable browsable API!