Backend system for Sticknet built using Django.
You can find Sticknet's mobile apps and main repo here.
- Python (>= Python 3.8)
- PostgreSQL (>= 14)
- Git clone:
git clone git@github.com:sticknet/sticknet-engine.git && cd sticknet-engine
- Create virtual environment:
python3 -m venv env && source env/bin/activate
- Install pip modules:
pip3 install -r requirements.txt
- Create local database:
psql
thenCREATE DATABASE sticknet;
thenexit
- Run database migrations:
python ./src/manage.py migrate
- Run server:
python ./src/manage.py runserver
- Run tests:
cd test_src && python ../src/manage.py test
When running sticknet-mobile it will be communicating with the remote server. To connect sticknet-mobile to a local server, follow these steps:
- Find the ipv4 address of your machine, or
run:
ipv4=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1)
- Start server using the ipv4 address:
python ./src/manage.py runserver "$ipv4:8000"
- Under 'sticknet-mobile/src/actions/URL.ts' edit
URL
to behttp://$ipv4:8000
where$ipv4
is your ipv4 address - If running on android, add your ipv4 to the
file
sticknet-mobile/android/app/src/main/res/xml/network_security_config.xml
- Mobile apps: Sticknet mobile
- Web app: Sticknet web
- End-to-end encryption protocol: Stick protocol
You can email us as at contact@sticknet.org
Copyright © 2018-2024 Sticknet
Licensed under the Apache License 2.0