InstaDApp-Dashboard/README.md

69 lines
2.4 KiB
Markdown
Raw Normal View History

2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
# **InstaDApp-Dashboard**
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
> ### This codebase explains how to interact with InstaDApp Smart Contracts.
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
This codebase was created to demonstrate InstaDApp-Dashboard built with Angular that interacts with InstaDApp [Smart Contracts]([https://github.com/InstaDApp/contract-v2](https://github.com/InstaDApp/contract-v2))
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
# Getting started
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
Make sure you have the [Angular CLI](https://github.com/angular/angular-cli#installation) installed globally. We use [Yarn](https://yarnpkg.com) to manage the dependencies, so we strongly recommend you to use it. you can install it from [Here](https://yarnpkg.com/en/docs/install), then run `yarn install` to resolve all dependencies (might take a minute).
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
### Clone the repo
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
```shell
git clone https://github.com/InstaDApp/InstaDApp-Dashboard
cd InstaDApp-Dashboard
```
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
### Install npm packages
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
Install the `npm` packages described in the `package.json` and verify that it works:
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
```shell
npm install
```
### For dev server
2019-07-19 19:56:06 +00:00
2019-09-02 16:38:28 +00:00
```shell
ng serve --proxy-config ./proxy.config.json
```
After running `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
### Building the project
```shell
ng build
```
After running `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build. These files are available in `gh-pages` branch. Use these files to run this application on your local system without any extra dependencies.
### Deploying into GitHub
Install `angular-cli-ghpages` and follow the steps in documentation of this repo.
[You can install and read steps from here]( [https://github.com/angular-schule/angular-cli-ghpages](https://github.com/angular-schule/angular-cli-ghpages))
## Functionality overview
**General functionality:**
- Interact with InstaDApp Smart Contract of MakerDao and Compound Finance.
- Exit from InstaDApp Ecosystem
**The general page breakdown looks like this:**
- Dashboard page (URL: #/dashboard )
- Supply, Borrow, Withdraw, Payback features of Compound Finance.
- Open / Close MakerDao CDP and use basic features of MakerDao
- Exit page (URL: #/exit )
- Withdraw funds from InstaDapp account
- Move your CDP to your wallet account
<br />
[![Brought to you by InstaDApp](https://instadapp.io/newsletter/img/logotext.png)](https://instadapp.io)