Skip to content

Latest commit

 

History

History
90 lines (58 loc) · 1.22 KB

README.md

File metadata and controls

90 lines (58 loc) · 1.22 KB

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