Allown informations about exoplanets to be searched easily and beautifully.
Clone the repository.
git clone https://github.com/elicaciocdefarias/nasa-exoplanet-query.git
Access the project folder,
cd nasa-exoplanet-query/
Open settings.yaml file and change the value of the variables BASE_DIR and NAME.
Notes: The value of parent_dir must be the full path to the folder where the project was cloned.
BASE_DIR: /<parent_dir>/nasa-exoplanet-query
DATABASES:
default:
ENGINE: django.db.backends.sqlite3
NAME: /<parent_dir>/nasa-exoplanet-query/db.sqlite3
In the root project, create a file called .secrets.yaml and add bellow code.
Notes: don't forget to change the value of the variable.
---
development:
SECRET_KEY: <your-secret-key>
Install the dependencies
poetry install
Run the migratrions.
poetry run python manage.py migrate
Run the tests.
poetry run pytest -vv
Build static files
poetry run python manage.py build_static_files
Load the information into the database.
poetry run python manage.py populate_database
Start the application in development mode
poetry run python manage.py run server
Have fun!!!