-
Copy the
.env.distfile to create a.envfile:cp .env.dist .env
-
Replace the placeholders in
.envwith your actual values. -
Start the application.
read_db.py: This script reads the database and prints its output in the terminal. Run it from the root directory using the command:python -m tests.read_dbdelete_db.py: In case you want to delete the entries made to the database so far and reset the id increment counter to 1, use this script from the root directory using the command:python -m tests.delete_dbcertificate_sender_test.pyandcertificate_preview_test.pyYou can run these test as it is to check if the certificate sender is working or not. If you want to run this on postman:
- Copy the json from the top of the respective test file
- Go to postman
- Enter the address for the resource you want to test
- Change the method to post
- Paste the json in body (choose format as json)
- Send the request
PS for the certificate_sender_test.py enter your email id in the placeholders before running the code or in the json before running it on postman