Skip to content

ribenabos/pokepedia

Repository files navigation

Poképedia

Overview

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.

Installation

  1. Clone the repository:

    $ git clone https://github.com/ribenabos/pokepedia.git
  2. Create a virtual environment:

    $ python3 -m venv env
  3. Activate the virtual environment:

    $ source env/bin/activate
  4. Install the project dependencies:

    $ pip install -r requirements.txt
  5. Run database migrations:

    $ python manage.py migrate
  6. Create a superuser:

    $ python manage.py createsuperuser

Usage

To launch the Poképedia web application, follow these steps:

  1. Make sure your virtual environment is activated.

  2. Start the development server:

    $ python manage.py runserver
  3. 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_pokemon

This 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 test

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.

About

TFC Pokepedia project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors