Distributed Social Network that allows users interact with each other as well as offering a social market place platform.
The following depenencies need to be installed for smooth running
- django
- pillow
- django restframework
- django-cors-headers
- channels
- channels-redis
- djoser
- django-friendship
- drf_yasg
Open terminal/command prompt and run:
python manage.py migratepython manage.py createsuperuser
- Install postgres
sudo apt update
sudo apt install postgresql postgresql-contrib
-
Access postgres console:
sudo -i -u postgresORsudo -u postgres psql -
change password command f
\password postgres -
Add database
create database mazaryn; -
Set following os constants
DATABASE_NAME
DATABASE_USER
DATABASE_PASSWORD
DATABASE_HOST
DATABASE_PORT
- Migrate models:
python manage.py migrate
- Install
Rust(usebrew) - Install
libmagic(usepip install python-magic-bin==0.4.14) - Update
pipto the latest version