by Rajiv Shah (rss5527)
- Python 3.9+
- PostgreSQL
Linux/macOS:
python3 -m venv venv
source venv/bin/activateWindows:
python -m venv venv
.\venv\Scripts\activateNote: On Windows, replace pip3 and python3 in future commands with pip and python, respectively.
pip3 install -r requirements.txtEnsure PostgreSQL is running. The scripts assume the username and password are both postgres and PostgreSQL is running on localhost:5432.
Create the database
createdb hotelsRun the import.py script to import data into PostgresSQL:
python3 import.pyTo launch the CLI, run the main.py script:
python3 main.pyFollow the on-screen prompts to interact with the CLI.