View Source README
Cosmox
This project is for internal use only, and it was heavily inspired by this project, that should be followed instead.
installation
Installation
To use Cosmox client, install it from hex.pm by adding it to the project dependencies.
It will be necessary to start the Cosmox application as well. Include it amog the application supervisor children array by adding this line:
children = [
%{
id: Cosmox.Application,
start: {Cosmox.Application, :start, [nil, nil]}
}
]
Cosmox uses Nestru to automatically converts maps to structs. To use this
functionality in the Document
module functions, it could be necessary to include it among the dependencies of
the project.
installation-guide
Installation Guide
configuring-wsl2-to-work-with-local-cosmosdb
Configuring WSL2 to work with local CosmosDB
In order to work with a local instance of CosmosDB, it's necessary to allow a firewall rule between WSL2 and Windows. In order to do that, input the following commands in a PowerShell administrator shell:
New-NetFirewallRule -DisplayName "WSL" -Direction Outbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
New-NetFirewallRule -DisplayName "WSL-Inbound" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow