Clone this repository then run npm install
npm installSetup the environmental variables by copying the .env-copy into a .env file
cp .env-copy .envTo use a local mongodb instance follow the steps below:
On Mac use homebrew. If not installed install it.
Add the mongodb repo to homebrew
brew tap mongodb/brewInstall community mongodb
brew install [email protected]In a separate terminal run
Build docker
docker build -t cbdc-oracle .run docker
docker run -p 5001:5001 -e MONGO_PASSWORD='' -e MONGO_USER='' -e MONGO_URL='' -e MONGO_DB='' cbdc-oracleFollow this tutorial https://learn.microsoft.com/en-us/azure/container-instances/container-instances-quickstart
Summary:
Install Azure CLI https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
Sign in with this command
az loginCreate resource group
az group create --name cbdc-resource-group --location eastusCreate private docker container registry
Take note of loginServer in the output, which is the fully qualified registry name (all lowercase).
az acr create --resource-group cbdc-resource-group --name cbdccontainerregistry --sku BasicMake sure admin in enabled
az acr update -n cbdccontainerregistry --admin-enabled trueLogin to registry
az acr login --name cbdccontainerregistryBuild and push a container to registry
az acr build -t cbdc-oracle:v1 -r cbdccontainerregistry .Create a container app on Azure using the new docker image
If asked for credentials anywhere in the process:
az acr credential show -n cbdccontainerregistryOnce you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open