Skip to content

Advanced, modern and fast social network built with Django.

Notifications You must be signed in to change notification settings

dori-dev/social-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Network

Advanced, modern and fast social network built with Django.

How to Run Project

Download Codes

git clone https://github.com/dori-dev/social-network.git
cd social-network

Create Volumes Directory

mkdir -p volumes/db volumes/cache volumes/logs src/staticfiles
sudo chmod -R 777 ./volumes/cache/

Set Environment Variable

Copy src/.env.example to src/.env and set the all variables value.

cp src/.env.example src/.env

Docker Compose

Build images and start containers.

docker-compose up --build

Stop and remove containers.

docker-compose down

Run containers in the background.
docker-compose up -d

Main Page: localhost


HTTPS in Development

sudo chown $USER /etc/hosts
echo '127.0.0.1 mysite.com' >> /etc/hosts

Run server with https.
python manage.py runserver_plus --cert-file cert.crt

Add Fake Data

Add fake user & post data to database.

python manage.py fakedata

Links

Download Source Code: Click Here

My Github Account: Click Here