Skip to content

Getting Started

Cng000 edited this page Nov 29, 2018 · 6 revisions

This page will focus on giving directions on how to run the project locally on your computers

Cloning the repo

Backend

How to run the backend for the first time

Prereq: pip3 and virtualenv `

  • install python and pip3
  • cd backend/

Create a .venv folder using virtualenv

  • pip3 install --user virtualenv
  • virtualenv .venv
  • source .venv/bin/activate

Download requirements and start project

  • pip3 install --user -r requirements.txt
  • python ./manage.py makemigrations
  • python ./manage.py migrate
  • python ./manage.py populatedb --dirpath events/data/
  • python ./manage.py topicsdb --dirpath events/data/topics/topics.json
  • python ./manage.py runserver

To deactivate( from anywhere ) the virtualenv:

  • deactivate

Frontend

Prereq: nodejs and npm

  • cd frontend/
  • run npm install
  • run npm start