gruntygap / hirola-database-site

Final Project for Database Systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hirola-database-site

the mascot

Environment Setup

What you need:

  • A Python 3 distribution
    • (Either 3.6 or 3.7.0 will work. However, 3.6.6 is on Wiebe)
  • Access to that Python 3 dist via CLI

How to build the virtual environment:

  • Make your way to your directory of the app.

  • Run the command:

    python3 -m venv [Desired-Path]
    • An example of this command would be: python3 -m venv ./../.envs/hirola-database-site This installs a new python3 env in ../.envs/hirola-database-site
  • Now we need to activate the python env:

    source [Path-to-Env]/bin/activate
    • An example of this command would be: source ../.envs/hirola-database-site/bin/activate This uses the python env. From this point every python3 or pip3 command will use this environment and will not be global.
  • Now we need to install requirements: (Do this with activate sourced)

    pip3 install -r requirements.txt
  • Now you can run the app! With the virtualEnv sourced, you can run:

    python3 run.py
  • To stop using this Env, simply type: deactivate now you have access to your global python installation.

About

Final Project for Database Systems


Languages

Language:HTML 59.3%Language:Python 20.9%Language:JavaScript 16.8%Language:CSS 3.0%