source .env/bin/activate
cd ./user
python manage.py runserver 0.0.0.0:10000
virtualenv -p python3 .env
source .env/bin/activate
pip install -r requirements.txt
source .env/bin/activate
cd ./auth
python manage.py migrate && python manage.py runserver 0.0.0.0:10000
source .env/bin/activate
cd ./eth
python manage.py migrate && python manage.py runserver 0.0.0.0:10001
source .env/bin/activate
cd ./sol
python manage.py migrate && python manage.py runserver 0.0.0.0:10002
source .env/bin/activate
cd ./pol
python manage.py migrate && python manage.py runserver 0.0.0.0:10003
source .env/bin/activate
cd ./bnb
python manage.py migrate && python manage.py runserver 0.0.0.0:10004
curl --cookie-jar 'session.jar' -X POST 'http://0.0.0.0:10000/users/' \
-H 'content-type: application/json' \
-d '{"wallet": "0xdea6e2a13d869d7d9b4c6078a9ac9ebe4ee597db", "password": "loremipsumdolor"}'
{
"wallet": "0xdea6e2a13d869d7d9b4c6078a9ac9ebe4ee597db",
}
curl --cookie "session.jar" -X GET http://0.0.0.0:10000/session/
{
"wallet": "0xdea6e2a13d869d7d9b4c6078a9ac9ebe4ee597db",
}
curl --cookie "session.jar" -X GET http://0.0.0.0:10001/balance/
{
"wallet": "0xdea6e2a13d869d7d9b4c6078a9ac9ebe4ee597db",
"balance": 488492839234,
"network": "Ethereum"
}
curl --cookie "session.jar" -X GET http://0.0.0.0:10002/balance/
{
"wallet": "0xdea6e2a13d869d7d9b4c6078a9ac9ebe4ee597db",
"balance": 12912,
"network": "Solana"
}
curl --cookie "session.jar" -X GET http://0.0.0.0:10003/balance/
{
"wallet": "0xdea6e2a13d869d7d9b4c6078a9ac9ebe4ee597db",
"balance": 43,
"network": "Polygon"
}
curl --cookie "session.jar" -X GET http://0.0.0.0:10004/balance/
{
"wallet": "0xdea6e2a13d869d7d9b4c6078a9ac9ebe4ee597db",
"balance": 889382984982,
"network": "Binance"
}