Whitepaper: https://0xcert.org/whitepaper.pdf
- A unique, one-of-a-kind asset.
- A digital asset like a collectible, a document or a thing.
- Follows ERC721 specification.
| /** | |
| * Converts a list of values into a list of pairs. | |
| * @param arr Single dimensional array of values. | |
| */ | |
| function toPairs(arr) { | |
| return Array.from(Array(Math.ceil(arr.length / 2)), (_, i) => arr.slice(i * 2, i * 2 + 2)); | |
| } | |
| /** | |
| * Converts a list of values into a list of pairs. |
| docker run -d \ | |
| --name mongo \ | |
| -p 27017:27017 \ | |
| -v ~/.docker/machine/volumes/mongo/4/data:/data/db \ | |
| mongo:4 |
Whitepaper: https://0xcert.org/whitepaper.pdf
| const { Model } = require("rawmodel"); | |
| const express = require("express"); | |
| /** Application context *******************************************************/ | |
| class Context { | |
| constructor() { | |
| this.db; // imaginary database | |
| } | |
| connect() { |
| ``` | |
| #!/bin/sh | |
| branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') | |
| if [ "master" != "$branch" ]; then | |
| exit; | |
| fi | |
| git checkout production |
| var path = require('path'); | |
| var webpack = require('webpack'); | |
| var isProduction = process.env.NODE_ENV === 'production'; | |
| /* | |
| * Compile for usage in a browser-like environmen or for the server. | |
| */ | |
| exports.target = 'web'; |
| 1. Build GraphQL server using `express-graphql` package. | |
| 2. Configure `schema.js` file. | |
| 3. Query for data. |
| 'use strict'; | |
| /** | |
| * Webpack Configuration File | |
| * | |
| * This is a configuration file for Webpack module bundler. You should customize | |
| * it to fit your project. | |
| * | |
| * To start the development server run: | |
| * |