Skip to content

Basic social media simulation using Django module in python.

Notifications You must be signed in to change notification settings

Aravindhan-G/CIPHER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CIPHER

A Social Media Simulation implemented using Django Framework in Python and MySQL as Backend.

Installation

Prerequisites

1. Install Python

Install python-3.7.2 and python-pip. Follow the steps from the below reference document based on your Operating System. Reference: https://docs.python-guide.org/starting/installation/

2. Install MySQL

Install mysql-8.0.15. Follow the steps form the below reference document based on your Operating System. Reference: https://dev.mysql.com/doc/refman/5.5/en/

3. Setup virtual environment

# Install virtual environment
pip install virtualenvwrapper -win

# Make a virtual environment
mkvirtualenv environmentname

# Activate virtual environment
workon environmentname

4. Clone git repository

git clone "https://github.com/Aravindhan-G/cipher.git"

5. Install requirements

cd cipher/
pip install -r requirements.txt

6. Create database and tables

# Open MySQL commandline
# Create database
create database cipher

7. Edit project settings

# open settings file
 cipher/settings.py

# Edit Database configurations with your MySQL configurations.
# Search for DATABASES section.
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'cipher',
        'USER': '<mysql-user>',
        'PASSWORD': '<mysql-password>',
        'HOST': '<mysql-host>',
        'PORT': '<mysql-port>',
    }
}

# save the file

8. Run the server

# Make migrations
python manage.py makemigrations
python manage.py sqlmigrate login 0001

# Collect static folder into assets
python manage.py collectstatic

# Run the server
python manage.py runserver

Try opening http://127.0.0.1:8000/ in the browser. Now you are good to go.

8. URLs

About

Basic social media simulation using Django module in python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published