Giter Site home page Giter Site logo

idpass / idpass-card-generator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 692 KB

Automate creating of multiple IDs, badges and cards for different people. Just upload your template and start generating your cards with different information.

License: Apache License 2.0

Python 87.66% CSS 0.17% JavaScript 0.03% HTML 3.42% Dockerfile 4.34% Shell 4.37%

idpass-card-generator's Introduction

idpass

A Vuetify project running in Cordova

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

# build for production and cordova build.
npm run cordova-build

# build for production and serve the app through the browser - no hot reload.
npm run browser

# add respective platforms
cordova platform add android
cordova platform add ios

# build for production and serve the app on an iOS device
npm run ios

# build for production and serve the app on an android device (won't serve on a virtual device)
npm run android

# build for production and serve the app on an android device (will serve on a virtual device or physical device - prefers virtual)
npm run android-vm

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

idpass-card-generator's People

Contributors

dependabot[bot] avatar jeremi avatar kneckinator avatar renceinbox avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

tf-govstack

idpass-card-generator's Issues

FileNotFound Error [Errno 2] No such file or directory: 'rsvg-convert'

Team,

We deployed the card generator in production. We are able to do operations like uploading the cards and getting the cards.
But when we try to render the card '/api/v1/cards/{uuid}/render/', getting below error.

sentry log

Installed 'rsvg-convert' by using apt-get install librsvg2-bin

django log
django_1 | INFO 2023-03-01 02:08:20,039 pdf 12 140170532390720 Start rendering #56dbb074-6957-4467-8a7f-3e45174f44b3

FileNotFoundError
[Errno 2] No such file or directory: 'rsvg-convert'

FileNotFoundError: [Errno 2] No such file or directory: 'rsvg-convert'
File "django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "contextlib.py", line 79, in inner
return func(*args, **kwds)
File "django/views/decorators/csrf.py", line 54, in wrapped_view
return view_func(*args, **kwargs)
File "rest_framework/viewsets.py", line 125, in view
return self.dispatch(request, *args, **kwargs)
File "rest_framework/views.py", line 509, in dispatch
response = self.handle_exception(exc)
File "rest_framework/views.py", line 469, in handle_exception
self.raise_uncaught_exception(exc)
File "rest_framework/views.py", line 480, in raise_uncaught_exception
raise exc
File "rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "card_generator/api/v1/cards/views.py", line 37, in render
return Response(data=serializer.data)
File "rest_framework/serializers.py", line 555, in data
ret = super().data
File "rest_framework/serializers.py", line 255, in data
self._data = self.to_representation(self.validated_data)
File "rest_framework/serializers.py", line 522, in to_representation
ret[field.field_name] = field.to_representation(attribute)
File "rest_framework/fields.py", line 1838, in to_representation
return method(value)
File "card_generator/api/v1/cards/serializers.py", line 52, in get_files
return card_render.render()
File "card_generator/cards/pdf.py", line 45, in render
pdf_name = self.render_pdf(name)
File "card_generator/cards/pdf.py", line 70, in render_pdf
convert_svgs(self.svg_files, rsvg_pdf, "pdf")
File "card_generator/cards/utils.py", line 46, in convert_svgs
subprocess.check_call(
File "subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename);

Please Let us know the what we are missing here.

Production:ModuleNotFoundError: No module named 'debug_toolbar'

We are installing the app in the production. While installing we are getting the following error. But in the production.yml there is no app for debug_toolbar.

django config in .envs/.production/.django

General

------------------------------------------------------------------------------

USE_DOCKER=yes
IPYTHONDIR=/app/.ipython

Any thing am i missing here. Below is the complete error stack. new to python ```

idpass-card-generator-django-1 | Traceback (most recent call last):
idpass-card-generator-django-1 | File "/app/manage.py", line 31, in
idpass-card-generator-django-1 | execute_from_command_line(sys.argv)
idpass-card-generator-django-1 | File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
idpass-card-generator-django-1 | utility.execute()
idpass-card-generator-django-1 | File "/usr/local/lib/python3.9/site-packages/django/core/management/init.py", line 420, in execute
idpass-card-generator-django-1 | django.setup()
idpass-card-generator-django-1 | File "/usr/local/lib/python3.9/site-packages/django/init.py", line 24, in setup
idpass-card-generator-django-1 | apps.populate(settings.INSTALLED_APPS)
idpass-card-generator-django-1 | File "/usr/local/lib/python3.9/site-packages/django/apps/registry.py", line 91, in populate
idpass-card-generator-django-1 | app_config = AppConfig.create(entry)
idpass-card-generator-django-1 | File "/usr/local/lib/python3.9/site-packages/django/apps/config.py", line 193, in create
idpass-card-generator-django-1 | import_module(entry)
idpass-card-generator-django-1 | File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
idpass-card-generator-django-1 | return _bootstrap._gcd_import(name[level:], package, level)
idpass-card-generator-django-1 | File "", line 1030, in _gcd_import
idpass-card-generator-django-1 | File "", line 1007, in _find_and_load
idpass-card-generator-django-1 | File "", line 984, in _find_and_load_unlocked
idpass-card-generator-django-1 | ModuleNotFoundError: No module named 'debug_toolbar'

ID PASS smart scanner: authentication failed

Team,

We are generating the card using 'idpass-card-generator'. But when we are scanning the card QR code using ID PASS smart scanner with ID PASS Lite option able to get details but when we try to authenticate with correct PIN app is telling authentication fails and also we are getting certificates as No certificate. But when I do verifycertificate and verifySignature its true.
ID PASS Scan Image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.