make envto create.envfile from.env.exampletemplate- Add/change credentials/settings in
.envfile make up- launch app (starts all required services: DRF app, Postgres DB, Redis, Celery worker/beat)
After launch:
make create-superuser- to create Django superuser with your credentialsmake create-test-superuser- to automatically create test superuser with predefined credentials
/api/events/- get the paginated list of smart contract events parsed to Django database/api/message/<str:eth_address>/- get one-time message to sign for web3/JWT authorization/api/auth/web3/- get JWT refresh/access tokens using signed message
- testing endpoint generating one-time message to sign
- testing signature verification
- testing JWT authorization and accessing restricted endpoint
- Spin up the services and create env file
make env && make up- Run:
make test-api