Team: Olivier Gabison, Joo Jang, Si Woo Park, Caedon Hsieh
Machine Learning Lead: Daniel Bang
Full-Stack Development Lead: Elise Lee
Direct questions related to the README instructions below to Elise!
The front end is built in React 16.12.0. To start your front end local development environment:
- Go to the lofi-frontend folder, usually by typing the following into your command line:
cd lofi-frontend
- Start the development server:
npm start
- Go to http://localhost:3000 to view it in the browser
The back end is in Python 3 using Flask.
A virtual environment is an isolated copy of Python that lets you work on one project without worrying about changes globally that may affect other projects. Packages installed in your virtual environment will not affect the global Python installation.
- Go to lofi-backend:
cd lofi-backend
- Create virtual environment:
virtualenv mypython
- Activate virtual environment:
source mypython/bin/activate
- Install requirements into virtual environment:
pip3 install -r requirements.txt
From now on, just make sure you are in your virtual environment when developing in lofi-backend.
- To activate virtual environment:
source mypython/bin/activate
- To deactivate virtual environment:
deactivate
- Make sure you are in the lofi-backend folder:
cd lofi-backend
- Set FLASK_APP environment variable to server.py, the location of the Flask server. For MacOS:
export FLASK_APP=server.py
- Run flask server:
flask run
- Go to http://127.0.0.1:5000/ to view in browser
To make a change to this repository, open a pull request - make sure you are not pushing directly to master! First, your code changes should be on a branch (ex, "elise-icons-update") other than master. To create a pull request:
- Click on the "Pull requests" tab from the lofi-labs repo in Github
- Click "new pull request"
- The base branch should be "master," and the compare branch should be your branch (ex, "elise-icons-update").
- Click "create pull request" and review the changes you are proposing to make sure only your intended changes are present.