This simple API lets you manage characters from star wars
- Download the repo with
git clone
- Create a virtualenv with
virtualenv venv -p python3
- Activate virtualenv
- Install requirements with
pip install -r requirements.txt
- Check Makefile
- Run migrations with
make dj-migrate
- Populate db with
make dj-populate
- Executes custom command to fetch data from swapi.dev
- Fixtures at
app\api\fixtures
but django has utf-8 encoding problems
- Run app with
make dj-up
- Go to
localhost:8080/doc
for swagger documentation and openapi schema - Credentials user=root, password=root if fixtures loaded orelse you can
- Create superuser with
python manage.py createsuperuser
- Sign up
- Create superuser with
- Run
make dj-test
orpython manage.py test api
Required docker and docker-compose
- Check the makefile
- Check the docker-compose file
- Run
make build
to create the docker image- Image also available in dockerhub
- Run
make run
to start the container of the api - Run
make stop
to stop the container
the container runs on port 9080
feel free to change it in docker/docker-compose-yml
Check host:port/doc
for swagger documentation
MIT License
Check the LICENCE file