Skip to content

Latest commit

 

History

History

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Algolia Sample application - Python back end

Requirements

How to run

  1. Create and activate a new virtual environment.

MacOS/Unix

python3 -m venv env
source env/bin/activate

Windows (PowerShell)

python3 -m venv env
.\env\Scripts\activate.bat
  1. Install dependencies
pip install -r requirements.txt
  1. Run the application

MacOS/Unix

export FLASK_APP=server.py
python3 -m flask run --port=4242

Windows (PowerShell)

$env:FLASK_APP=“server.py"
python3 -m flask run --port=4242
  1. Go to localhost:4242