Skip to content

anthonymq/osmosis-frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Osmosis Web Interface

Frontend React app for Osmosis AMM.

Install global dependencies

To run or build the app, first, need to install Node.js and Yarn globally;

First Install Node (recommend 14.x.x LTS version) from;

https://nodejs.org/

Then install Yarn;

npm install -g yarn
# OR
sudo npm install -g yarn

Install project dependencies

First clone the repo;

git clone https://github.com/anthonymq/osmosis-frontend.git && cd osmosis-frontend

Then install project dependencies;

yarn

Build

To build the static assets;

yarn build:css && yarn build

This should produce prod folder with static assets.

Currently, Osmosis frontend app is SPA with entry point: prod/index.html

Development

To spin up the local dev server;

yarn build:css && yarn dev

The app should be live at http://localhost:8081

Deploy a new version on the Internet Computer

The first time, you need to configure the upstream (osmosis-labs own repository) to be able to retrieve the last version of the code

git remote add upstream https://github.com/osmosis-labs/osmosis-frontend.git

Then, everytime you want to update the app, you have to update our branch "master" with the last code

git checkout master 
git fetch upstream
git pull --rebase upstream master

Finally, to deploy on the IC

# with an authorized principal
dfx deploy --network=ic

The app should be live at https://ate7l-riaaa-aaaaf-qae3q-cai.raw.ic0.app/

Note that if you need to authorize a new principal to this canister you should :

dfx canister --network=ic call osmose_assets authorize '(principal "NEW_PRINCIPAL_ID")'

License

This work is dual-licensed under Apache 2.0 and MIT. You can choose between one of them if you use this work.

SPDX-License-Identifier: Apache-2.0 OR MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 83.4%
  • JavaScript 15.1%
  • Other 1.5%