Skip to content
React Starter project with OCAP JS SDK integrated
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public initial commit Aug 22, 2018
src (chore): code formatting Nov 15, 2018
.editorconfig
.gitignore (chore): update readme Nov 15, 2018
LICENSE Initial commit Aug 22, 2018
README.cn.md (chore): update readme Nov 15, 2018
README.md
deploy.sh add deploy script Aug 23, 2018
package.json 0.1.1 Nov 30, 2018

README.md

ocap-react-starter

OCAP DApp starter template with @arcblock/ocap-js integrated, bootstrapped using create-react-app.

中文版文档请猛击 README.cn.md

Usage

1. Use as custom react-scripts

Make sure you have npm v6+ installed.

npx create-react-app my-ocap-app --scripts-version @arcblock/react-scripts
cd my-ocap-app
yarn start

2. Use as starter template

git clone https://github.com/ArcBlock/ocap-react-starter.git
cd ocap-react-starter
yarn
yarn serve

If you are from China, use a mirror npm registry maybe better: yarn --registry=https://registry.npm.taobao.org

OCAP SDK Usage Example

OCAP SDK Documentation

Other OCAP Tools

Other Libraries Included

Deployment

We recommend deploying your project to now.sh:

  1. create an account at https://zeit.co/
  2. install zeit cli: npm install -g now
  3. login through zeit-cli, now login
  4. change your domain alias in deploy.sh
  5. run npm run deploy

Congratulations, your project is online.

You can’t perform that action at this time.