world.ly is now hosted on the web! You can visit world.ly here or visit http://worldly.live with Google Chrome!
- Clone the world.ly repository to your local machine.
git clone https://github.com/rqian239/world.ly.git
-
Install Python (developed with Version 3.10.4).
-
Add Python Installation to PATH environment variable.
- Here is a helpful link: https://www.educative.io/answers/how-to-add-python-to-path-variable-in-windows
To check if setup correctly, open type in the command prompt
python --version
pip --version
-
Download the Oracle Instant Client package from the Oracle website for Windows (https://www.oracle.com/database/technologies/instant-client/downloads.html)
-
Extract the contents of the Oracle Instant Client and place in a directory.
- For example, I placed the extracted install directory into an "Oracle" directory with path D:\Program Files\Oracle\instantclient_21_9 on my Windows machine
-
Add Oracle Instant Client to PATH environment variable.
- The steps are the same as adding your python installation to PATH. Except, add the path of the oracle instant client installation (for example, D:\Program Files\Oracle\instantclient_21_9)
-
Download Microsoft C++ Build Tools (https://visualstudio.microsoft.com/visual-cpp-build-tools/)
-
Install 'Visual Studio Community 2022' (or latest version) with the Visual Studio Installer. (https://visualstudio.microsoft.com/downloads/)
- When prompted to install workloads, select 'Desktop development with C++'
- If this is not prompted, finish installing 'Visual Studio Community 2022'
- Then go to the 'Installed' tab and select 'Modify' under 'Visual Studio Community 2022'
- Select the box labled 'Desktop development with C++' and install
-
Open the cloned worldly project in your IDE (VSCode is recommended).
-
Open a command prompt or terminal in the project directory and run
pip install -r requirements.txt
- In functions.py, change the "path_of_oracle_instant_client" variable to the path of the oracle instant client on your machine.
-
Download UFL VPN, if you do not have it (https://net-services.ufl.edu/provided-services/vpn/clients/)
-
Connect to UFL VPN using the Cisco AnyConnect Secure Mobility Client
-
Type 'vpn.ufl.edu' in the bar if prompted to and insert ufl credentials
-
Open a Command Prompt and navigate to the world.ly project root directory
-
Run
python main.py
-
Open http://127.0.0.1:8050/ in your web browser
-
Have fun with world.ly!
-
Install the latest version of Python (https://www.python.org/downloads/)
-
Install pip
python3 get-pip.py
-
Download the Oracle Instant Client package from the Oracle website for your operating system (https://www.oracle.com/database/technologies/instant-client/downloads.html)
-
After extraction (see download instructions), add the directory containing the Instant Client files to your system's PATH environment variable.
export DYLD_LIBRARY_PATH="Instant Client Directory"
-
Install the cx_Oracle package
pip3 install cx_Oracle
-
Install Dash and its required packages
pip3 install dash dash-renderer dash-html-components dash-core-components
-
Connect to UFL VPN.
-
Set environment variable
export DYLD_LIBRARY_PATH="Instant Client Directory"
-
In terminal, navigate to project directory and run the Python Dash App
python3 app.py
-
Open http://127.0.0.1:8050/ in your web browser
-
Have fun with world.ly!
Demographic data is accessed from a UFL CISE Oracle Database Server, which requires the UF VPN or an on-campus network.
If you are unable to access the database, download this SQL file to build the database.
Use an Oracle SQL Database and modify the cx_Oracle.connect
function with details of your database.
Created by Richard Qian, William Sobczak, and Nikhil Pandya