Test case for Knight Frank.
Simple realty catalog.
- Python 3
- flask
- wtforms
- psycopg2
- PostgreSQL
Clone, create virtual environment and install dependencies:
git clone https://github.com/dp92987/knight-frank-test.git
cd knight-frank-test
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
Create secret.json
with database credentials:
{
"db_host": "host",
"db_user": "user",
"db_password": "password",
"db_name": "name"
}
Create database schema:
python3 manage.py create_schema
Copy demo data:
python3 manage.py copy_demo_data
Run application:
python3 run.py
Database schema and demo data are stored in sql
folder.