2021-08-11 19:46:17 +00:00
|
|
|
# Assembly
|
2021-07-17 16:50:30 +00:00
|
|
|
|
2021-08-12 19:25:16 +00:00
|
|
|
<img src="https://raw.githubusercontent.com/Instadapp/assembly/master/banner.png">
|
2021-07-17 16:50:30 +00:00
|
|
|
|
2021-08-13 21:26:56 +00:00
|
|
|
|
|
|
|
## Directory Structure
|
|
|
|
|
|
|
|
.
|
|
|
|
├── ...
|
|
|
|
├── composables
|
|
|
|
│ ├── protocols/ # Logic for protocols, example `useAave2Position.ts`
|
|
|
|
│ ├── ...
|
|
|
|
│ └── ...
|
|
|
|
├── ...
|
|
|
|
├── components
|
|
|
|
│ ├── protocols/ # Contains components used for protocols, example `CardAave.vue`
|
|
|
|
│ ├── sidebar/ # Contains all sidebar components, check `useSidebar.ts`
|
|
|
|
│ └── ...
|
|
|
|
├── ...
|
|
|
|
├── pages
|
|
|
|
│ ├── mainnet/ # Apps for Mainnet network
|
|
|
|
│ ├── polygon/ # Apps for Polygon network
|
|
|
|
│ └── index.vue # List all avaiable apps
|
|
|
|
└── ...
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
2021-07-17 16:50:30 +00:00
|
|
|
```bash
|
|
|
|
# install dependencies
|
|
|
|
$ yarn install
|
|
|
|
|
|
|
|
# serve with hot reload at localhost:3000
|
|
|
|
$ yarn dev
|
|
|
|
|
|
|
|
# build for production and launch server
|
|
|
|
$ yarn build
|
|
|
|
$ yarn start
|
|
|
|
|
|
|
|
# generate static project
|
|
|
|
$ yarn generate
|
|
|
|
```
|
|
|
|
|
|
|
|
For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).
|