kuchichan / cores-api

pick you fav spaceX core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cores-api

Installation:

  1. In main folder:
git submodule init
git submodule update
  1. build & run docker compose
docker-compose --env-file=.env.example build
docker-compose --env-file=.env.example up --detach 
  1. To populate users and cores in database run:
docker-compose --env-file=.env.example run --rm  core-api python load_users.py
docker-compose --env-file=.env.example run --rm  core-api python load_cores.py

You do not have to populate cores - if the database does not contain cores, it will be fetched during the get (it takes time).

  1. You can navigate api via http://127.0.0.1:8000/docs

NOTE:

Due to problematic API limits, pagination are omitted (offset in graph with sorting will result in overlapping core_id sets)

About

pick you fav spaceX core


Languages

Language:Python 89.5%Language:Dockerfile 8.7%Language:Shell 1.8%