Skip to content

Latest commit

 

History

History
104 lines (99 loc) · 2.68 KB

README.md

File metadata and controls

104 lines (99 loc) · 2.68 KB

CI Status

CyberEd_4907

Educative Webapp for Teaching Basic Concepts of Cybersecurity

Set Up Virtual Environment

For MAC OS/Linux:

  • Install pip3
    sudo apt-get install python3-pip
  • Install virtualenv
    pip3 install virtualenv
  • Change Directory
    cd <project-path>/CyberEd_4907/
  • Create Virtual Env
    virtualenv -p python3 venv
  • Activate Virtual Env
    source venv/bin/activate
  • Install Project Requirements
    pip3 install -r requirements.txt
  • Add node.js Virtual Env to Existing venv
    nodeenv -p
  • Update to Latest npm Version
    npm install -g npm
  • Install react Dependencies
    npm install
  • Deactivating Virtual Env
    deactivate

For Windows 10/11:

  • Download & Install Python 3.11.5

    • Click this link to download Python 3.10.7 executable, the default installation should install pip on your Windows machine as well.
    • Add Python & pip to the PATH variable
      1. Open the Run dialog box by pressing the Windows key + R.
      2. Type in sysdm.cpl and press Enter to access System Properties.
      3. Under the the Advanced tab click Environment Variables
      4. Under User variables select Path and click Edit.
      5. Click New and the following paths seperately:
        C:\Users\{YOUR_USER}\AppData\Local\Programs\Python\Python311
        C:\Users\{YOUR_USER}\AppData\Local\Programs\Python\Python311\Scripts
      6. Under System variables select Path and click Edit
      7. Click New and the following path:
        C:\Users\{YOUR_USER}\AppData\Local\Programs\Python\Python311
  • Install virtualenv

    pip install virtualenv
  • Change Directory

    cd <project-path>/CyberEd_4907/
  • Create Virtual Env

    virtualenv -p python3 venv
  • Activate Virtual Env

    source venv/Scripts/activate
  • Install Project Requirements

    pip install -r requirements.txt
  • Add node.js Virtual Env to Existing venv

    nodeenv -p
  • Update to Latest npm Version

    npm install -g npm
  • Install Node Dependencies in package.json. Run this command for the Backend and Frontend

    npm install
  • Deactivating Virtual Env

    deactivate