GithubHelp home page GithubHelp logo

cogeorg / trusted-contract-oracle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ntls-io/trusted-contract-oracle

0.0 0.0 0.0 92 KB

License: GNU Affero General Public License v3.0

JavaScript 99.18% Dockerfile 0.82%

trusted-contract-oracle's Introduction

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 [email protected]

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

trusted-contract-oracle's People

Contributors

takundachirema avatar billguo99 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.