rl-institut / tier_spatial_planning

Part of the people Sun project
GNU Affero General Public License v3.0
4 stars 1 forks source link

Description

This open-source computer tool is part of the PeopleSuN project, which contains a web-based app that aims to optimize the network structure as well as the power supply system for mini-grid systems.

The features of the tool are listed below:

Get started

Installation

  1. From the root of the repository, first create a virtual environment (here called venv) using the following command: python3 -m venv venv

or if you want to install a specific version of python, first install virtualenv and then: virtualenv venv --python=python_version

Note that conda can also be used to set up a virtual environment

  1. Activate the virtual environment running the following command:

i. On Linux, MacOs source venv/bin/activate

ii. On Windows venv\Scripts\activate

  1. Install the required packages using the following command: pip install -r requirements.txt

Launching of the app

  1. Run the following command to start the FastAPI server: uvicorn fastapi_app.main:app --reload

  2. Open the following URL in a browser (preferably on Chrome or Firefox): http://127.0.0.1:8000/