Skip to content

How to Set up Localhost

Guillaume Ah-ki edited this page Mar 18, 2018 · 12 revisions

Initialization

  1. While in SOEN341_SA2/stack_overfull/frontend/

    $ npm install (install all the frontend dependencies)

    $ npm install -g webpack@3.10.0 (install webpack if you don't have it.)

    (If you already install latest version, use $ npm uninstall -g webpack to delete webpack)

    $ webpack (generate a bundle)

  2. While in SOEN341_SA2/

    $ pip install virtualenv

    $ virtualenv venv

    Activate venv (look up online on how to do this it varies from os to os)

    • For Mac OS: $ source venv/bin/activate

    • For Window: $ virtualenv\Scripts\activate.bat

    $ pip install -r requirement.txt (install backend dependencies)

  3. While in SOEN341_SA2/stack_overfull/

    $ python manage.py makemigrations so_endpoint or $ python3 manage.py makemigrations so_endpoint

    $ python manage.py migrate or $ python3 manage.py migrate (Django’s way of propagating changes you make to your models)

    $ python manage.py runserver or $ python3 manage.py runserver (run on localhost)

Clone this wiki locally