Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codius

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codius

Codius smart oracle command-line interface (CLI) for Node.js

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Codius Command-Line Interface (CLI)

Installation

sudo npm install -g codius

Getting started

Hello world

Let's check out a contract and run it!

git clone git@github.com:codius/example-helloworld.git codius-example-helloworld
cd codius-example-helloworld
codius run

You should see something like:

Contracts are servers

Contracts can expose HTTP APIs, check it out:

git clone https://github.com/codius/example-webserver.git codius-example-webserver
cd codius-example-webserver
codius serve

Your contract is now running at localhost:2634. Go ahead and open it in a browser!

Uploading contracts

Warning, this functionality is still heavily under development.

You can upload contracts to Codius hosts. First, let's set up a local Codius host:

git clone git@github.com:codius/codius-host.git
cd codius-host
npm install
node app

Now you can go back to the codius-example-webserver folder from the previous example.

To upload your contract, run codius upload.

cd codius-example-webserver
codius upload

Now your contract is running on the Codius host! Go ahead and open its URL in the browser and watch its output in the host's log!

Keywords

FAQs

Package last updated on 09 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc