Giter Site home page Giter Site logo

swap-multi-chain-dex-web-app's Introduction

ExzoSwap-Multi-Chain-DEX-Web-App

ExzoSwap by Exzo Network Multi-Chain Decentralized Exchange (DEX) web application integrating the 1inch API and Moralis.io API. Supported chains includes Ethereum (ETH), Binance Smart Chain (BSC), and Polygon (POLY). Avalanche (AVAX) is in testing still.

If you have any questions join our discord: https://discord.gg/FcU5y8hZ3m

๐Ÿ’Ž Prerequisits ๐Ÿ’Ž

โœ… 1) Install NPM or Yarn on your Windows, Linux, or Mac.

npm install --global yarn

โœ… 2) Have a Moralis.io account.

โœ… 3) Create a server on Moralis for the following networks Ethereum (Mainnet), Binance Smart Chain (Mainnet), Avalanche (Mainnet), Polygon (Mainnet).

โœ… 4) In your Moralis server instance go to "Plugins" and add the 1inch plugin, OnRamper plugin, and the OpenSea plugin to your server instance.

๐Ÿ’Ž Steps to run the dApp on your local machine ๐Ÿ’Ž

โœ… Step 1) Clone or fork ExzoSwap-Multi-Chain-DEX-Web-App:

git clone https://github.com/Exzo-Network/ExzoSwap-Multi-Chain-DEX-Web-App.git

โœ… Step 2) Install all dependencies:

cd ExzoSwap-Multi-Chain-DEX-Web-App
yarn install

โœ… Step 3) Get your server credentials from Moralis.io and replace them in .env.example and rename .env.example to .env:

# Mandatory info for starting the app

REACT_APP_MORALIS_APPLICATION_ID = xxxxxxxxxxxxxxxxxxxxxxxxxx
REACT_APP_MORALIS_SERVER_URL = https://xxxxx.usemoralis.com:2053/server

# Optional info for connecting your localChain and Moralis Database

moralisApiKey = xxxxxxxxxxx
moralisApiSecret = xxxxxxxxxxxxxxxx
frpcPath = F:\frpc\frpc.exe
chain = ganache
moralisSubdomain = xxxxxxxxxx.usemoralis.com
abiPath = "F:\ethereum-boilerplate\Truffle\build\contracts\Contract.json"

โœ… Step 4) Run your App:

yarn start

โœ… Step 5) Run a production version of your App:

yarn build

โœ… Step 6) Upload the build folder to your github repository or server and then you can host it online such as netlify.com:

CI= yarn build

๐Ÿš€ Step 7) Go to your local host url to view your dApp at http://localhost:3001/

How to customize the dApp to your own branding:

โœ… Chainging the logo: Go to the components file "src/components/" and change the logo.png file to your logo.

โœ… Then to resize the logo to ensure it has the right dimensions go to the App.jsx file "src/App.jsx" scroll down to the bottom to lines 361-371 and change the "width" and the "size" on lines 366 and 367.

export const Logo = () => (
  <div style={{ display: "flex" }}>
    <img
      src={LogoName}
      alt="Exzo Network Logo"
      width="250px"            <---- Change this to whatever width your logo needs.
      size="55px"              <---- Change this to whatever size your logo needs.
      margin-left="50px"
      padding-left="50px"
    />
  </div>
);

โœ… To change the color of the dApp go to the style.css file located at "src/style.css" and there you can change the background, along with changing the background color in the app.jsx file on line 40 where it says "background: "rgb(12, 14, 27)","

style.css lines 83-90 to change the color of the swapping card background:

.ant-card-body {
  color: rgb(18, 20, 38) !important;
  padding: 16px 24px !important;
  border: 1px solid rgb(22, 23, 46) !important;
  border-radius: 16px !important;
  box-shadow: rgba(0, 0, 0, 0.5) 10px 10px 20px 0px !important;
  position: relative !important;
}

app.jsx:

const styles = {
  content: {
    display: "flex",
    justifyContent: "center",
    fontFamily: "Roboto, sans-serif",
    color: "#041836",
    marginTop: "130px",
    padding: "10px",
    backgroundImage: "url(${background})",
    background: "rgb(12, 14, 27)",             <----- Change this to change part of the background color of the dApp.
    backgroundSize: "fill",
  },

โœ… To Add Custom Tokens go to the app.jsx file and scroll down to line find the network of the token you want to add (ETH, BSC, AVAX, POLY) and then add this structure to it below the other ones already added. You can get the logo uri by going on coinmarketcap, coingecko, bscscan, etherscan, or polyscan and going to the token of your choice page and right clicking the logo and selecting copy logo url then paste it where the url of the logoURI is below.

"0x56501B0B12Ee9518c2991451Bbc8d7F9267949d2": {
   address: "0x56501B0B12Ee9518c2991451Bbc8d7F9267949d2",                <---- Token Smart Contract Address.
   decimals: 9,                                                          <---- Token decimals.
   logoURI: "https://bscscan.com/token/images/exzocoin2_32.png",         <---- Token logo URL.
   name: "ExzoCoin 2.0",                                                 <---- Token Name.
   symbol: "EXZO",                                                       <---- Token Symbol.
   },

swap-multi-chain-dex-web-app's People

Contributors

nexisdev avatar

Stargazers

 avatar  avatar OSSChain.com avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar DertVibe avatar  avatar  avatar  avatar  avatar  avatar NielKusuma avatar Karol Zdrodowski avatar  avatar  avatar  avatar setyowahyudi avatar  avatar  avatar Queenbeer avatar  avatar  avatar stefn avatar  avatar  avatar cowcow1 avatar  avatar naymyohan avatar  avatar  avatar  avatar  avatar  avatar Theresa Etim avatar Roshan Katwal avatar  avatar Amit Karpe avatar

Watchers

 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.