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/
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/
# Install virtual environment
pip install virtualenvwrapper -win
# Make a virtual environment
mkvirtualenv environmentname
# Activate virtual environment
workon environmentname
git clone "https://github.com/Aravindhan-G/cipher.git"
cd cipher/
pip install -r requirements.txt
# Open MySQL commandline
# Create database
create database cipher
# 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
# 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.