This is a Django project for a web application with data from the Pokémon API using the pokebase library.
Updated up to Generation VIII.
NOTE: This project is still in development.
Clone the repository:
$ git clone https://github.com/ribenabos/pokepedia.git
Create a virtual environment:
$ python3 -m venv env
Activate the virtual environment:
$ source env/bin/activateInstall the project dependencies:
$ pip install -r requirements.txt
Run database migrations:
$ python manage.py migrate
Create a superuser:
$ python manage.py createsuperuser
To launch the Poképedia web application, follow these steps:
Make sure your virtual environment is activated.
Start the development server:
$ python manage.py runserver
Open your web browser and visit http://localhost:8000/ to access Pokepedia.
To populate the database with data for every Pokémon, run the following command:
$ python manage.py populate_pokemonThis will fetch data for each Pokémon from the Pokémon API and store it in the database. Note that it will be a long process.
To run unit tests, run the following command:
$ python manage.py testContributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.