Welcome to the edutie backend application.
Whole documentation is provided in edutie-docs repository. You may find it here.
To browse open api SWAGGER endpoint documentation visit http://localhost:8081/docs url.
The JSON OpenApi specification is present under http://localhost:8081/docs/spec url.
Running the app using docker-compose.yaml is the default. It runs the edutie-backend with the database only.
docker-compose build- this ensures the codebase is refreshed and up-to-datedocker-compose up- runs the app with the DB
This is mostly use to build the image, as flows usually require the whole system to be up.
Running the app using compose-dev.yaml is the way of running Edutie app in the local environment.
This way utilizes the convention in which all the sub-system repositories are a sibling folders to the edutie-backend folder. Example:
- Top-level-folder
- edutie-backend
- edutie-llm
- edutie-knowledge-map
- etc.
If repositories are structured this way, we can use collective dev compose to run the whole backend system at once:
docker-compose -f compose-dev.yaml upRunning the production environment is supported by compose-prod.yaml. This setup is prepared for the deployment architecture. Note that the app in the deployment architecture is used through a reverse proxy url. Moreover, it uses a different, extended environment .env file.
Run the prod env using:
docker-compose -f compose-prod.yaml upEnvironment configurations requires certain .env files to be set up. The sample .env files for given settings are provided, however for production setup it requires replacing some values.
Note that the main .env file that is provided in this repo, provides most of but not all environment vars & secrets. There are also .env files in frontend & subsystem repos that need to be filled in.
To build docker images use docker-composes associated with the environment you want to run, e.g.
docker-compose -f compose-prod.yaml build bff This will update the BFF app image.