I-NERGY / FlexDR

Repository of FlexDR application developed within I-NERGY project.

Home Page:https://i-nergy.eu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I-NERGY UC7 - FlexDR

Repository information

This is the repository of FlexDR backend application developed within I-NERGY UC7 project.
FlexDR service consists of additional services which can be found using the following urls:

Deployment guidelines

This section provides instructions to deploy FlexDR FastAPI service and MongoDB locally in docker containers, using Docker Compose. Docker-compose file makes use of the environment variables defined in env file which contains default values for local installation. In order to start the containers, run:

docker-compose --env-file=.env.local up --build -d

In order see endpoints documentation users can visit the url: <service_url>:<service_port>/docs e.g. http://localhost:8002/docs:

More details on how interact with the application could be found in the documentation section of the repository.

Run tests

In order to run the tests:

  1. Start application (More)
  2. Run script initialising the database with test data. (Example: ./init_test_db.sh mongodb ../../mongodb_test_db/flexibility_test)
  3. Run script executing tests with coverage (here). This process will take care of cleaning and restoring database prior to tests

About

Repository of FlexDR application developed within I-NERGY project.

https://i-nergy.eu/

License:Other


Languages

Language:Python 93.4%Language:Shell 6.0%Language:Dockerfile 0.5%