Skip to content

williammabotjaeng/topolock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

180 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TopoLock

Open Source Project under MIT License https://opensource.org/license/mit/

How to Run this App on Localhost

To run TopoLock app on localhost with specific environment variables, you can follow these steps:

Set up a Virtual Environment (Optional)

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)

Set the FLASK_APP Variable

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 Environment Variables

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

Run the App

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.

Access the App

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.

About

A Geo-Security app, to keep you and your business relationships safe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors