- python3(min version 3.13)
- mysql(min version 8.4)
- clone the repo
- create a new python3 virtualenv using command python -m venv venv
- activate venv using command source venv/bin/activate
- install dependencies using command pip install -r requirements.txt
- configure databse creds in glamy_ai.settings file(mysql min version 8.4)
- run migrations on database using command python manage.py migrate
- run application using command python manage.py runserver
- test health of application curl --location 'http://127.0.0.1:8000/health'
curl --location 'http://127.0.0.1:8000/api/users/send-otp/' \
--header 'Content-Type: application/json' \
--data '{
"mobile": "1234567890"
}'
curl --location 'http://127.0.0.1:8000/api/users/verify-otp/' \
--header 'Content-Type: application/json' \
--data '{
"mobile": "1234567890",
"otp": "376570"
}'
curl --location 'http://127.0.0.1:8000/api/users/verify-otp/' \
--header 'Content-Type: application/json' \
--data-raw '{
"mobile": "1234567890",
"otp": "255935",
"first_name": "Sagar",
"last_name": "Yadav",
"email": "sagar@gmail.com"
}'
curl --location --request GET 'http://127.0.0.1:8000/api/users/token/refresh/' \
--header 'Content-Type: application/json' \
--data '{
"refresh": "<refrsh_token>"
}'
curl --location 'http://127.0.0.1:8000/api/catalogue/list' \
--header 'Authorization: Bearer <access_token>'