Coder Social home page Coder Social logo

pmuens / astralis Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 2.82 MB

Monorepo for rapid development of production grade EVM dApps

License: MIT License

Shell 1.39% JavaScript 6.19% Solidity 9.40% TypeScript 82.57% CSS 0.46%
ethereum evm smart-contracts smart-contract dapp solidity hardhat nextjs dapp-template react reactjs hardhat-template solidity-contracts ethereum-dapp blockchain dapp-development

astralis's Introduction

Astralis

Monorepo for rapid development of production grade EVM dApps.

Setup

  1. git clone <url>
  2. cp ./packages/hardhat/.env.example ./packages/hardhat/.env
  3. Update ./packages/hardhat/.env
  4. cp ./packages/next/.env.example ./packages/next/.env
  5. Update ./packages/next/.env
  6. yarn install
  7. yarn dev
  8. MetaMask
    1. Import Hardhat Account #0 Private Key
    2. Import Hardhat Account #1 Private Key
    3. Switch to Hardhat Account #0
    4. Update "Localhost 8545" Network Chain ID to 31337 (Settings -> Networks -> Localhost 8545 -> Chain ID)
    5. Reset Account (Settings -> Advanced -> Reset Account)

Deployment

Hardhat

  1. yarn hardhat:clean
  2. Ensure that ./packages/hardhat/.env is up-to-date
  3. NETWORK= yarn hardhat:deploy
  4. NETWORK= yarn hardhat:verify

Next

  1. yarn next:clean
  2. Ensure that ./packages/next/.env is up-to-date
  3. FLEEK_API_KEY= yarn workspace next exec 'fleek site:init' *
  4. Open ./packages/next/.fleek.json and change publicDir to out *
  5. FLEEK_API_KEY= yarn next:deploy

* Not necessary for subsequent deployments.

Useful Commands

yarn [<workspace>:]build
yarn [<workspace>:]clean
yarn [<workspace>:]coverage
yarn [<workspace>:]format
yarn [<workspace>:]lint
yarn [<workspace>:]lint-staged
yarn [<workspace>:]metrics
yarn [<workspace>:]test
yarn [<workspace>:]watch
NETWORK= FLEEK_API_KEY= yarn [<workspace>:]deploy
NETWORK= yarn [<workspace>:]export

yarn workspace <name> add [-D] <dependency>
yarn workspace <name> run <script>

NETWORK= yarn hardhat:deploy
NETWORK= yarn hardhat:export
NETWORK= yarn hardhat:verify

FLEEK_API_KEY= yarn workspace next exec 'fleek site:init'
FLEEK_API_KEY= yarn next:deploy

Checklists

Updating the Solidity Compiler

  • Do global search for current version
  • Update findings to use new version

Adding a Workspace

astralis's People

Contributors

pmuens avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

git-akazam

astralis's Issues

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.