Code Monkey home page Code Monkey logo

force-frontend's Introduction

Effect Force Select Screen

Production Deploy

The mainnet and testnet versions of the Force are on two different repositories.

# Add remote, if you haven't added it already!
git remote add prd [email protected]:effectai/force-frontend-prd.git

# Fetch remote info
git fetch

# Switch to branch prd/deploy
git switch deploy

# Merge changes from your branch
git merge <your-branch>

# Push deploy to prd
git push

# Go to Github and make a Pull Request from deploy to mainnet-config

Build Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

Add Local Version of Effect SDK

  1. Clone the GitHub repository: https://github.com/effectai/effect-js/
  2. Install & build SDK: npm i && npm run build
  3. Link effect-js to local install:
npm link /path/to/effect-js/

When you make changes to the SDK you should run npm run build:cjs in that, after which the force frontend will automatically reload the changes.

Node version V.14

Node version v14 is required to run the project. If you have nvm installed, you can run nvm use to switch to the correct version.


Deployment

there are 2 GitHub actions workflows:

  • if you push to the main branch, it will build the static website for mainnet and push it to the gh-pages branch. The files on the gh-pages branch are served on https://app.effect.network
  • if you push to the testnet branch, it will build the static website for testnet (APP_ENV=testnet) and commit all the build files (in /dist) to another repository (effectai/force-frontend-testnet). That repository is set to serve files to testnet.effect.network main is protected and you cannot directly push to main, so best to first push/make a PR to testnet and from there we make a PR to main

force-frontend's People

Contributors

laurensv avatar djmbritt avatar jairzijp avatar jabbarn avatar jeisses avatar rochelle8044 avatar miggysmallz avatar elbourki avatar

Watchers

James Cloos 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.