For course: Web engineering
Install python
$ sudo apt-get update
$ sudo apt-get install python3.6
Install virtualenv
$ pip install --user virtualenv
Install node
$ brew install node
Create a virtual environment for this project
virtualenv airlines_api
Activate the virtual environment for this project
source <path-of-the-newly-created-environment>/bin/activate
Navigate into the root folder of the project
cd <project-path>/airlines_api
Install requirements of the project
pip install -r requirements.txt
Start the development server
./manage.py runserver
In case a fresh database is desired:
Delete "db.sqlite3" file
./manage.py migrate
Now import the data from the json
./manage.py import_json
Start the development server (backend)
./manage.py runserver
Open another terminal and navigate into the "frontend" folder
cd ../frontend
Start the server
npm start