Skip to content

johnnieskywalker/cappuccino-coffeehouse

Repository files navigation

Gitpod ready-to-code

Cappuccino Coffeehouse

This project is for the blockchain application Cappuccino Coffeehouse. It contains code for the PROGRAM, web-based dapp and NodeJS server.

Welcome to Coffeehouse

Blockchain program is Cappucino Machine.

Fellow blockchain traveller you entered a coffeehouse in which you can deposit your SOL tokens into cup of coffee no vaults here. After depositing SOL you will be able to see it shining inside cup, in return you will be able to borrow CAPPUCINO STABLECOINS. Cappuccino STABLECOINS are pegged not to a price of any fiat currency but to a price of cappuccino in NY from Numbeo API. So this is trustless stablecoin which warranties you will be able to buy cappuccino coffee - a Proff of Coffee and Milk. You can borrow as much Cappuccino as much cappuccino coffees you could buy in New York minus collateral ratio. When you will keep your collateral ratio you will be able to give back your Cappuccino into a cup and take back your deposited SOL. So if price of SOL will go up you will be able to borrow more CAP tokens, or give them back to cup and receive deposited SOL. If the price of SOL would drop for some reasons so you deposit will be worth less then your CAP + c-ratio, you won't be able to take back deposited SOL. Program will take it, however you will still be able to enjoy your CAPPUCINO!

Pre-requisites

In order to develop and build "Cappuccino Coffeehouse," the following pre-requisites must be installed:

Dependency Checklist

$ node --version
$ npm --version
$ rustup --version
$ rustc --version
$ cargo --version
$ solana --version

Installation

Using a terminal (or command prompt), change to the folder containing the project files and type: yarn This will fetch all required dependencies. The process will take 1-3 minutes and while it is in progress you can move on to the next step.

Yarn Errors

You might see failures related to the node-gyp package when Yarn installs dependencies. These failures occur because the node-gyp package requires certain additional build tools to be installed on your computer. Follow the instructions for adding build tools and then try running yarn again.

Build, Deploy and Test

Using a terminal (or command prompt), change to the folder containing the project files and type: yarn start This will run all the dev scripts in each project package.json.

The first time you run yarn start there are a fair number of Rust libraries that are downloaded and pre-compiled. As a result, it may be take from 5-10 mins. before the dapp is compiled and launched the first time. On subsequent compilations, the build time will only be a few seconds.

File Locations

Here are the locations of some important files:

To view your dapp, open your browser to http://localhost:5000 for the DappStarter Workspace.

Created using DappStarter

Visit https://support.decentology.com

Dependency Guides

This section contains installation guides for common dev environments.

Rust

(Source: Solana) We suggest that you install Rust using the 'rustup' tool. Rustup will install the latest version of Rust, Cargo, and the other binaries.

Follow the instructions at Installing Rust.

For Mac users, Homebrew is also an option. The Mac Homebrew command is brew install rustup and then rustup-init. See Mac Setup & Installing Rust for more details.

After installation, you should have rustc, cargo, & rustup. You should also have ~/.cargo/bin in your PATH environment variable.

About

Fullstack app of SOLANA program and it's frontend for putting SOL into cup as collateral and borrowing CAP tokens. As well as receiving back SOL when giving CAP back.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published