Skip to content

Latest commit

 

History

History
56 lines (52 loc) · 1.5 KB

README.md

File metadata and controls

56 lines (52 loc) · 1.5 KB

SeniorDesignProject

-SSH Stetup
-In .ssh
-ssh-keygen -t rsa -b 4096 -C "SeniorDesign Isaiah Linux"
-Then copy the generated id_rsa.pub
-After adding key to github
-Enter command in repo
git remote set-url origin git@github.com:IsaiahST2020/SeniorDesignProject.git

Setup with pipenv

To have this environment run as smoothly as possible, you can run the following commands to get a working setup for production or development

Installing pipenv

to get all the dependencies independant of the system, you will need to install pipenv

debian/ubuntu:

sudo apt install pipenv

every other system

$ pip install pipenv

Installing dependencies with pipenv

Once that is done, navigate to the workspace and run the following commands

$ pipenv install

Installing dependencies + development libraries

This includes things like pylint and autopep8 to help keep formatting and documentation consistent.

pipenv install --dev

Running the application

if you want to run the server using the virtual environment provided by pipenv you can follow these steps on a fresh install

pipenv uninstall --all
pipenv install --dev
pipenv shell
sudo python3 -m pip install -r requirements.txt
pip freeze
mkdir data
cd data
touch db.sqlite3
cd ..
sudo python3 manage.py makemigrations
sudo python3 manage.py migrate
sudo python3 manage.py createsuperuser
sudo python3 manage.py runserver

or

pipenv shell 
exit (to leave shell)