This is the backend for the Stacks Node Map project. It's built with Flask and provides an API for the frontend.
- Clone the repository.
- Create a virtual environment:
python3 -m venv .venv
- Activate the virtual environment:
source .venv/bin/activate
- Install the required packages:
pip install -r requirements.txt
- Copy the example environment file:
cp env.sh.example env.sh
- Open
env.sh
and modify the environment variables if needed.
- Start the Flask server:
python run.py api
- The server will start on
localhost:8089
.
/
: Returns a greeting message./nodes
: Returns the network and nodes data.
api
: Starts the Flask server.discoverer
: Runs the discoverer script.
Please feel free to submit issues and pull requests.