Skip to content
/ FlexDR Public

Repository of FlexDR application developed within I-NERGY project.

License

Notifications You must be signed in to change notification settings

I-NERGY/FlexDR

Repository files navigation

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