Awesome
Sticknet Engine
Backend system for Sticknet built using Django.
Mobile app
You can find Sticknet's mobile apps and main repo here.
Contributing
Prerequisites
- Python (>= Python 3.8)
- PostgreSQL (>= 14)
Setup
- 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
Testing
- Run tests:
cd test_src && python ../src/manage.py test
Connect sticknet-mobile to local server
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
Other repos:
- Mobile apps: Sticknet mobile
- Web app: Sticknet web
- End-to-end encryption protocol: Stick protocol
Contact Us
You can email us as at contact@sticknet.org
License
Copyright © 2018-2024 <a href="https://www.sticknet.org">Sticknet</a>
Licensed under the Apache License 2.0