Giter Club home page Giter Club logo

cyfs-walletconnect's Introduction

dec-app-template

A set of standardized dec-app project templates.

CYFS project basic compilation command

  • Execute npm run install dependencies
  • Execute npm run proto-mac to compile proto files into js files, you need to execute npm run proto-mac-pre (mac) first
  • Execute npm run proto-windows to compile proto files into js files (windows)
  • Execute npm run dev to start the local front-end service, and you can view the modification effect in real time from the cyfs browser
  • Run tools/zone-simulator.exe to open the simulator. Note: If you only test the same zone interface, use sim1, if you need to test the cross-zone interface, you need to open sim2 again
  • execute npm run sim1 to start sim1 running on the local emulator,
  • Execute npm run sim2 to start sim2 running on the local emulator
  • execute npm run build to execute the build task
  • Execute npm run deploy to deploy DEC App to OOD, the user can install it, the mac system needs to execute npm run mac-deploy-pre first
  • execute npm run lint to execute eslint checks
  • execute npm run lint_fix to execute eslint autofix

CYFS project directory structure description

  • Meta information of .cyfs project and Owner
  • cyfs.config.json is the configuration file for the Dec App project
  • service_package.cfg is the server configuration file of the Dec App project
  • move_deploy.js is the necessary file move operation before deploy
  • The deploy directory is the output directory of the project compilation, and the cyfs package refers to the files here
  • The dist directory is the storage directory for the front-end package files of the Dec App project
  • doc directory to store documents
  • src storage code directory

Compile the proto file as Typescript in the mac environment

In the project root directory, execute the command as follows:

npm run proto-mac-pre
npm run proto-mac

Note Since the protoc executable program is directly executed, a pop-up window may prompt cannot open "protoc" because the developer cannot be verified, and the developer needs to set it according to the following path: System Preferences -> Security & Privacy -> Allow Apps Downloaded from -> Select App Store and Approved Developers -> Click Allow Still Follow this path to set it up and execute the command again. After running, two files, obj_proto_pb.d.ts and obj_proto_pb.js, are generated in the src/common/objs folder. In the obj_proto_pb.d.ts declaration file, we see the type definition of the Order object.

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.