Git Product home page Git Product logo

corgis's Introduction

Explore Corgis when you first see this!

To run on main Testnet

Requirements

IMPORTANT: Make sure you have the latest version of NEAR Shell and Node Version > 10.x
  1. node and npm

  2. near shell Install with

npm i -g near-shell

3.(optional) install yarn to build

npm i -g yarn

Procedure (deploy the contract for your own project)

Step 1: Create account for the contract.

In the terminal

near login

click the link and create your own contract ID on NEAR Testnet

After you see the context, "Logged in as [ YOUR_NAME ] with public key [ ed25519:XXXXXX... ] successfully", you are done.

Step 2: Deploy the contract on the account

Modify src/config.js line that sets the contractName. Set it with Id from step 1.

const CONTRACT_NAME = process.env.CONTRACT_NAME || "new-corgis"; /* TODO: fill this in! */

Step 3:

(For Mac and Ubuntu): Finally, run the command in your terminal.

npm install && npm run start

with yarn:

yarn install && yarn start

(For Windows):

yarn install
yarn start

The server that starts is for static assets and by default serves them to localhost:1234. Navigate there in your browser to see the app running!

To Explore

  • assembly/main.ts for the contract code
  • src/index.html for the front-end HTML
  • src/main.js for the JavaScript front-end code and how to integrate contracts
  • src/app.js for the first react component

To run on Local Node (May in the old version and need update)

Step 1: Get nearcore

Step 2: Use command ./scripts/start_localnet.py --local to start the local node

Step 3: Install serve with:

npm i serve

Use command serve src -p 3000 to start on localhost:3000

Step 4: Start frontend with command:

NODE_ENV=local yarn start

Now, open localhost:3000. Navigate there in your browser to see the app running!

Step 5: Use wallet/login/index.html to create account and start exploring.

corgis's People

Contributors

anaisurlichs avatar behaviary avatar icerove avatar myklemykle avatar

Watchers

 avatar  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.