Minimum working searchApp instance consists of 2 parts:
- Web Application (Django based)
- sqlite database
-
Open command line, go to git_repository;
-
Type "git clone https://github.com/sdenisen/searchApp.git"
-
Start Pycharm. File -> Open choose 'searchApp' folder.
-
Go to: Setting -> Project -> Project Interpreter
- Create new Virtual Env (based on python3.7+)
-
Run in terminal in venv context
pip install -r requirements.txt
-
Copy excel table to searchApp/equipment_parts/data/ folder. The table with one sheet that contains 2 columns with names: "asv_id", "full_name". Expected file name: "excel_data.xlsx"
-
Execute python file: python convert_excel_to_sqlite_db.py (will be created db.sqlite3 file).
-
Make sure that the db.sqlite3 file will be placed in root folder of project.
-
Run -> Edit configuration
- Set
Host
to0.0.0.0
so it will be available from all interfaces
- Set
-
Open
http://127.0.0.1:8000/
in browser