This application requires Python 3
The application uses the Django web framework to take care of the boilerplate code and provide project structure.
This project is using requirements.txt
at its most basic level. e.g. it's not configured to deal with new package releases,
different environments etc.
You will need to have a MySQL server and database running on localhost set up by some means.
The project is already set up to use mySQL, connection settings can be edited in the settings file DJANGO_SETTINGS_MODULE
referenced in manage.py
.
- Clone this repository to your local machine
git clone repo-url-tbc
- Navigate to the project folder
cd pokemon-django
- Create a virtual environment
python -m venv venv
- Activate the virtual environment you just created
.\venv\Scripts\activate
- Install packages
python -m pip install -r requirements.txt
- Add your database connection settings
- Run migrations to create database tables
python manage.py makemigrations
python manage.py migrate
- start the development server
python manage.py runserver
Pinning package requirements:
python -m pip freeze > requirements.txt
Deactivate the virtual environment:
deactivate