Automate creating of multiple IDs, badges and cards for different people. Just upload your template and start generating your cards with different information.
Clone this repo
git clone https://github.com/idpass/idpass-card-generator.git
Requirements
docker compose -f local.yml build
docker compose -f local.yml up
docker compose -f local.yml run --rm django python manage.py createsuperuser
/admin
/admin/users/user/add/
api/v1/auth-token
Endpoints are documented using OPENAPI specification. Visit this page to try and discover how this endpoints work.
For more in-depth explanation of card endpoints, please visit the documentation on its usage
For config settings, environment variables are stored in .envs/
.
Local values are already provided for quick setup of local environment.
Django configuration settings are divided into different environments following 12 factor app principle. You will see that under config/settings
we have local
, production
, test
and the base
config.
Docker can help developers quickly set up the project environment with only a few commands. This project can be setup with or without Docker.
Running type checks with mypy:
mypy card_generator
To run the tests, check your test coverage, and generate an HTML coverage report:
coverage run -m pytest
coverage html
open htmlcov/index.html
pytest
This project expects you will have a production environment files located in .envs/.production
with the same .django
and .postgres
files inside.
Deployment with Docker and Compose is easy and can be setup on any remote server. Follow this instructions to deploy this project to a production server.