Clone this repository then run npm install
npm install
Setup the environmental variables by copying the .env-copy into a .env file
cp .env-copy .env
To 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/brew
Install community mongodb
brew install mongodb-community@6.0
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-oracle
Follow 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 login
Create resource group
az group create --name cbdc-resource-group --location eastus
Create 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 Basic
Make sure admin in enabled
az acr update -n cbdccontainerregistry --admin-enabled true
Login to registry
az acr login --name cbdccontainerregistry
Build 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 cbdccontainerregistry
Once 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