HMA API is a part of House Money Accountant solution. This part contains HTTP REST back-end server written using .NET Core SDK.
Required:
Optional:
-
Add next allowed JS origins:
-
Add next allowed redirect URIs:
-
Install .NET Core SDK and Docker Desktop.
-
Run next commands in PowerShell to setup ELK + Mongo stacks:
docker network create elastic docker run -d --name elasticsearch --net elastic -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.6.2 docker run -d --name kibana --net elastic -p 5601:5601 kibana:7.6.2 docker network create mongo docker run -d --name mongo --net mongo -p 27017:27017 mongo:latest docker run -d --name mongo-express --net mongo -p 8081:8081 mongo-express:latest
Caution! All saved data in your docker images will be lost if docker gets down! System reboot / shutdown, image restart and other events included!
-
Crate a copy of appsettings.json file with appsettings.Development.json name.
-
Save a tree structure, but remove all values except the
null
ones. Then fill them with corresponding values.Example of result file:
{ "Serilog": { "MinimumLevel": { "Default": "Debug" }, "WriteTo": [ { "Args": { "nodeUris": "http://localhost:9200" } } ] }, "CorsOptions": { "AllowedOrigins": [ "http://localhost:44361", "http://localhost:63216", "http://localhost:4200" ] }, "GoogleOptions": { "ClientId": "Google OAuth 2.0 Client ID" }, "MongoDbOptions": { "ConnectionString": "mongodb://localhost:27017" } }