Skip to content

ntls-io/trusted-contract-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ac5e79a · Aug 18, 2023

History

8 Commits
Aug 17, 2023
Aug 16, 2023
Aug 18, 2023
Aug 18, 2023
Aug 16, 2023
Aug 17, 2023
Aug 17, 2023
Aug 16, 2023
Aug 11, 2023
Aug 17, 2023
Aug 11, 2023
Aug 17, 2023
Aug 11, 2023
Aug 17, 2023
Aug 17, 2023
Aug 17, 2023

Repository files navigation

cbdc-challenge oracle

Running The Project

Clone this repository then run npm install

npm install

Environment Variables

Setup the environmental variables by copying the .env-copy into a .env file

cp .env-copy .env

MongoDB setup

To use a local mongodb instance follow the steps below:

Mac

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

Local Deployment

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

Azure Deployment

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

Developing

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published