Coder Social home page Coder Social logo

mathisbeauty / snet-dapp-monorepo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vivek205/snet-dapp-monorepo

0.0 0.0 0.0 18.62 MB

All Dapp Services for Singularitynet

License: MIT License

HTML 0.20% JavaScript 99.54% CSS 0.23% Shell 0.02%

snet-dapp-monorepo's Introduction

SingularityNET Frontend Monorepo

Quick links

Prerequisites

Windows

  • Node >= 10.14.1 < 12.0.0
  • yarn >= 1.15.0 < 2.0.0

Linux

  • Node >= 10.16.0 < 12.0.0
  • Yarn >= 1.15.0 < 2.0.0

Initial setup

  • git clone https://github.com/singnet/snet-dapp-monorepo.git
  • cd snet-dapp-monorepo
  • yarn

That's it you're all set up. You can start play with the repo.

Starting Marketplace

  • cd packages/marketplace-dapp
  • cp .env.example .env
  • Add the appropriate values for the keys in the .env file
  • cd ../../
  • yarn start:marketplace

Marketplace is ready for you.

Starting RFAI

  • cd packages/rfai-dapp
  • cp .env.example .env
  • Add the appropriate values for the keys in the .env file
  • cd ../../
  • yarn start:rfai

Starting PUBLISHER

  • cd packages/publisher-dapp
  • cp .env.example .env
  • Add the appropriate values for the keys in the .env file
  • cd ../../
  • yarn start:publisher

Building new components

  • cd packages/shared
  • Add the component in the src/components folder
  • Add story for it in the index.stories.js file
  • yarn build:shared

Awesome. You can start using your components in any other project. Just import it from the path shared/dist/components/[ComponentName]

Cleaning the node_modules

Developers try new things and may end up in mess. Don't worry! we got you covered! Just run yarn nuke from the root. Node modules from all the packages will be cleaned and you can start fresh.

Troubleshooting Monorepo.

If the import of the shared packages is not working Try running lerna exec -- yarn link. This will recreate the symlinks of all the packages in the monorepo.

If lerna is not installed globally, then try yarn run link:all. This will use the locally installed version of lerna

Quick Links

Publisher Portal

Ropsten: development preview

http://ropsten-publisher.singularitynet.io.s3-website-us-east-1.amazonaws.com/

Mainnet: production

https://publisher.singularitynet.io/

Staking Portal

Ropsten: development preview

http://ropsten-stake.singularitynet.io.s3-website-us-east-1.amazonaws.com/landing

Mainnet: production

https://staking.singularitynet.io/

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.