https://github.com/prixladi/treeloc-backend
Backend for TreeLoc app - https://github.com/prixladi/treeloc
https://github.com/prixladi/treeloc-backend
aspnetcore csharp docker mongodb
Last synced: 3 months ago
JSON representation
Backend for TreeLoc app - https://github.com/prixladi/treeloc
- Host: GitHub
- URL: https://github.com/prixladi/treeloc-backend
- Owner: prixladi
- License: mit
- Created: 2020-01-14T19:00:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T23:35:42.000Z (over 3 years ago)
- Last Synced: 2025-01-16T21:13:36.495Z (over 1 year ago)
- Topics: aspnetcore, csharp, docker, mongodb
- Language: C#
- Homepage:
- Size: 408 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Treeloc Backend
[Project repository](https://github.com/prixladi/treeloc/).
# Launching the project
## Docker (docker-compose)
Start the project using `docker-compose up`
Create new images and start the project using `docker-compose up --build`
---
### Api
Api service should be running on port **4545**.
---
### Loader
Loader service should be running on port **4546**.
---
### MongoDb
MongoDb container should be running on port **27017**.
---
Port mapping for all services can be changed in the **./docker-compose.yml** file.
[docker-compose documentation.](https://docs.docker.com/compose/)
# Run tests and code coverage
## Docker (docker-compose)
Using `docker-compose -f ./tests/docker-compose.yml up --build`
UI with code coverage should be be accessible on port **80**.
Port mapping for all services can be changed in the **./tests/docker-compose.yml** file.
# Environment variables
Environment variables can be changed in the **./docker-compose.yml** file.
## Api service
|Name|Optional|Description|
|---|---|---|
|MONGO_URL|no|MongoDB address|
|MONGO_DATABASE_NAME|no|MongoDB Database name|
## Loader service
|Name|Optional|Description|
|---|---|---|
|MONGO_URL|no|MongoDB address|
|MONGO_DATABASE_NAME|no|MongoDB Database name|
|LOADER_INTERVAL|no|Dataset download interval \[s\]|
|DISCOVERY_INTERVAL|no|DISCOVERY_URL call interval \[s\]|
|DISCOVERY_URL|no|Address of discovery endpoint|
|REMOVE_OLD|no|Flag true/false whether to clear all data after start|