/nasa-demo-api

This is a demo Fast Api application. Shows Astronomy Picture of the Day.

Primary LanguagePythonMIT LicenseMIT

Nasa Api - Astronomy Picture of the Day

Python 3.10


This is a simple async Fast Api application that uses Nasa Api. This projects aims to discover Fast Api and it is features.

Running on local

  1. Clone the repo.
  2. Make sure you have poetry installed.
  3. Set this environment variable ENV_FOR_DYNACONF="production" to make real requests to nasa api.
  4. Run:
    $ poetry install
    $ uvicorn main:app
  5. Go to localhost:8000/apod

Testing

This project uses pytest.

$ pytest