andyPark / Facebook-Clone-Django

A clone of facebook with complete functionality built on top of django, memcached, docker, cassandra, hbase, hive, kafka, varnish, google analytics, and TravisCI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook-Clone-Django

This is a social media website built using django.

Setup Guide

requirements

  • python3.7 or higher
  • pipenv
    • Get it by running pip install pipenv

Setep Guide

1.Cloning the repo
  • Clone the repo or fork it and then clone from your profile.
  • Cd into Facebook-Clone-Django
  • Create a new branch by doing the following:
    • git checkout -b branch_name
2.Pipenv and migrations
  • Go to directory where the pipfile is and run pipenv install
  • Activate pipenv by doing pipenv shell
  • Go into the src folder where the manage.py sits and run the following:
    • python manage.py makemigrations
    • python manage.py migrate
3.Super user and Profile
  • Create super user by doing the following:
    • python manage.py createsuperuser
4.Env vars
  • Go the the folder facebook where the settings.py file sits and create a file called .env
  • Add the following inside the file:
    • SECRET_KEY = 'secret_key_here'
5.Running the server and Profile
  • Go the folder where your manage.py sits and the following commands to run the server:
    • python manage.py runserver
  • Go to django admin, login and make a profile for yourself or create a new user using the form at http://localhost:8000/register/ and then your good to go with the site.
  • If you created a new user, make sure your logged in with the new user while working on the project(login at http://localhost:8000/login/).
  • If you made a profile for the super user from the django admin page, then your good to go.

About

A clone of facebook with complete functionality built on top of django, memcached, docker, cassandra, hbase, hive, kafka, varnish, google analytics, and TravisCI


Languages

Language:Python 62.5%Language:HTML 23.9%Language:CSS 13.6%