1.1.0 ā€¢ Published 2 years ago

cross-swap v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Cross Frontend

This is the front-end repo for Hector that allows users be part of the future of Greece.

šŸ”§ Setting up Local Development

Required:

$ git clone https://github.com/SoulSwapFinance/Luxor-Frontend.git
$ cd hectordao

# set up your environment variables
# read the comments in the .env files for what is required/optional
$ cp .env.example .env

# fill in your own values in .env, then =>
$ yarn
$ yarn start

The site is now running at http://localhost:3000! Open the source code and start editing!

Architecture/Layout

The app is written in React using Redux as the state container.

The files/folder structure are a WIP and may contain some unused files. The project is rapidly evolving so please update this section if you see it is inaccurate!

./src/
ā”œā”€ā”€ App.tsx       // Main app page
ā”œā”€ā”€ abi/          // Contract ABIs from etherscan.io
ā”œā”€ā”€ actions/      // Redux actions
ā”œā”€ā”€ assets/       // Static assets (SVGs)
ā”œā”€ā”€ components/   // Reusable individual components
ā”œā”€ā”€ constants.js/ // Mainnet Addresses & common ABI
ā”œā”€ā”€ contracts/    // TODO: The contracts be here as submodules
ā”œā”€ā”€ helpers/      // Helper methods to use in the app
ā”œā”€ā”€ hooks/        // Shared reactHooks
ā”œā”€ā”€ themes/       // Style sheets for dark vs light theme
ā””ā”€ā”€ views/        // Individual Views

šŸ—£ Community