Backend of NCKU FEED web app.
Project description.
Install docker. More information here.
docker compose -f Docker-compose.dev.yaml up --build
- Step 1: Install virtualenv
pip install virtualenv
- Step 2: Create a virtual environment
python -m venv env
- Step 3: Activate virtual environment
- Windows Powershell
./env/Scripts/Activate.ps1
- Windows cmd
.\env\Scripts\activate.bat
- Linux and MacOS
source env/bin/activate
- Windows Powershell
- Step 4: Install packages
pip install -r requirements.txt
- Step 5: Run the program
- Set the environment variables
- FLASK_APP=run.py
- FLASK_ENV=development
- Run flask
flask --debug run --host 0.0.0.0
- Set the environment variables