Open Source Project under MIT License https://opensource.org/license/mit/
To run TopoLock app on localhost with specific environment variables, you can follow these steps:
It is recommended to set up a virtual environment to isolate the dependencies of the app. Open your terminal or command prompt, navigate to the directory where your app is located, and run the following commands:
python -m venv env # Create a virtual environment
source env/bin/activate # Activate the virtual environment (for Unix/Linux)
env\Scripts\activate # Activate the virtual environment (for Windows)
In your terminal or command prompt, navigate to the directory where the app is located and run the following command to set the FLASK_APP environment variable to app.py:
export FLASK_APP=app.py # For Unix/Linux
set FLASK_APP=app.py # For Windows (Command Prompt)
To install dependencies, run the following command:
pip install -r requirements.txt
Set the required environment variables for the app. Assuming you have the following environment variables to set: API_TOKEN, CONFIG_ID, LOG_API_TOKEN, MAIL_USERNAME, and MAIL_PASSWORD. In your terminal or command prompt, run the following commands to set the environment variables:
export API_TOKEN=your_api_token
export CONFIG_ID=your_config_id
export LOG_API_TOKEN=your_log_api_token
export MAIL_USERNAME=your_mail_username
export MAIL_PASSWORD=your_mail_password
Start the app by running the following command in your terminal or command prompt:
flask run
The app will start running on port 5000 by default.
Once the server is running, you can access the app by opening a web browser and navigating to http://localhost:5000. You should be able to interact with the app based on its functionality.