This is the backend of DNA Gate, a SaaS app for robust biometric authentication.
Check this link for more information.
- Clone the repository
- Enter the project's directory and edit the .env file as follows
APP_NAME=ModzyHack
ENV=development
SECRET_KEY=supersecretkey
ALGORITHM=HS256
TOKEN_EXPIRE_MINUTES=60
MONGODB_URL=uri of a running mongo instance (eg. mongodb://127.0.0.1:27017/?retryWrites=true&w=majority)
DATABASE=mongodb database to use
MODZY_API_KEY=your modzy api key
- Run
pip install -r requirements
(Make sure that you have Python <= 3.8 and pip before running this command) - Run
uvicorn main:app --host=0.0.0.0 --port=${PORT:-8000}
You should have your backend up and running at http://localhost:8000. You can see the SwaggerUI API documentation of the backend at this link
Note: If you deploy to heroku, you need to add soundfile library package for voice recognition to work. To do so, add the apt buildpack and it will look at Aptfile in the project to install necessary libraries.
Distributed under the Apache 2.0 License. See LICENSE.txt
for more information.
Arnol Fokam - @ArnolFokam
Project Link: https://github.com/ArnolFokam/dna-gate
- Modzy (Computer Vision pre-trained models)