Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

skarzi/star_wars_characters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Star Wars API people resource explorer

API and web app that allow to explore Star Wars API people resource.

Developing locally

docker and docker-compose is necessary to work on this project.

Every command listed below should be run from repository root. Firstly setup docker-compose.override.yml properly to your OS:

cp \
    .devops/docker/docker-compose.override.yml.example \
    docker-compose.override.yml

To build docker images that won't mess up with your local file permissions you need to find your current user id - UID, by running following command:

echo "${UID}"

Replace all repetitions of !!UID!! value in docker-compose.override.yml.

Finally let's ensure that all host ports listed in ports services of sections are available.

To build all services images simply run:

docker-compose build

To setup swapi service use following commands:

NOTE: You will be prompted for superuser username and password, please provide it!

docker-compose run --rm swapi make build load_data

To setup backend app service run following commands:

docker-compose run --rm app python manage.py migrate --no-input
docker-compose run --rm app python manage.py collectstatic --no-input

Then, you can run all services:

docker-compose up --detach

WEB UI and REST API services ports are forwarded from container to localhost:

Linters and unit tests of backend service can be run with executing:

docker-compose run --rm app make test

About

API and web app that allow to explore Star Wars API people resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published