Emotion app is a web application that can record learners’ emotions in real time and allow researchers to customize questionnaires.
$ git clone https://github.com/carrrmenleong/EmotionApp.git
$ cd EmotionApp
Unix/Linux:
$ python -m venv venv
$ source venv/bin/activate
Windows:
$ python -m venv venv
$ venv\Scripts\activate
$ pip install -r requirements.txt
$ flask db upgrade
Copy app.db file and rename the copied file to test.db which will be used during testing
Contact one of the contributors or the owner of this project for the .env file. Then, store the .env file locally in the root directory of your cloned project.
$ flask run
- Choose the issue you want to work on.
- Assign yourselves to the relevant issue on GitHub.
- Create a branch corresponding to the issue with the format
i<issue_number>-<issue_name>. - Checkout to the issue branch.
- Work on your changes.
- Make commits and push them to the issue branch.
- Open a pull request on GitHub.
- Get your peer to review your code and merge your change to main.
- Your feature is merged.
- Delete your local branch with
git branch -d <branch_name>.
After installing new pakage(s), run the following code in your virtual environment to update the requirements.txt file.
$ pip freeze > requirements.txt
To download the pakages listed in the requirements.txt file, run the following code in your virtual environment.
$ pip install -r requirements.txt
$ python -m pytest -v --disable-warnings --cov=app --cov-report html
Open up htmlcov/index.html to read the test report