# README

https://github.com/hamster-shared/hamster-develop/tree/develop
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Type Support for .vue
Imports in TS
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
Customize configuration
See Vite Configuration Reference.
Project Setup
yarn install
Compile and Hot-Reload for Development
yarn dev
Type-Check, Compile and Minify for Production
yarn build
Contributors
Thank you for considering your contribution to ALine!
概述
欢迎使用 ALine 文档!以下指南将帮助您指导您完成构建去中心化应用程序的旅程。如果您在使用 ALine 时遇到任何问题,或者发现此处描述的内容不明确,请在 GitHub 上提出问题。
后端使用了 go
语言开发。
前端使用了最新的 vue3
, vite3
, Typescript
, Ant Design Vue3
, 等主流技术开发。
什么是 ALine?
安装
先决条件
本地需要安装 go 环境
-
windows 安装 go 环境
-
下载安装包并执行安装
-
配置 go 代理
#配置代理 go env -w GOPROXY=https://goproxy.cn,direct go env -w GO111MODULE=on
-
linux 安装 go 环境
-
访问官网下载地址
-
下载对应系统安装包
-
将下载的压缩包解压,移动到/usr/local/目录下
-
配置环境变量
vim ~/.bash_profile
在文件最后加入以下内容
# $HOME/go 为工作空间的路径,可自行修改 export GOPATH=$HOME/go
更新配置
source ~/.bash_profile
- 配置 go 代理
#配置代理 go env -w GOPROXY=https://goproxy.cn,direct go env -w GO111MODULE=on
-
-
macos 安装 go 环境
-
访问官网下载地址
-
下载对应系统安装包并且安装
-
配置 go 代理
#配置代理 go env -w GOPROXY=https://goproxy.cn,direct go env -w GO111MODULE=on
-
安装 ALine(目前只支持 Macos,Linux)
源码安装
- 从远程仓库 clone 代码到本地
git clone -b develop https://github.com/hamster-shared/hamster-develop.git
- 编译构建
cd a-line //进入到项目目录
make web //编译构建前端
#此处更具操作系统执行不同的命令
# linux执行
make linux
# macos执行
make macos
启动 ALine
安装 ALine 成功后,在项目目录下执行以下命令
./aline daemon #启动ALine
快速创建部署 DApp
-
从模板创建
-
点击创建按钮,进入创建界面
-
在创建页面,选择想要的模板,点击下一步按钮
-
进入信息面板,确认信息无误,点击下一步创建按钮
-
成功创建后,在首页即可看到您所创建的 Pipeline
-
-
应用结构
-
运行 Pipeline:点击运行按钮即可运行
-
查看运行结果
-
点击卡片进入
-
此页面展示了具体的运行流程及结果
-
-
通过 CLI 运行 Pipeline: 在终端运行此代码即可
./pkg/service/template/templates/erc20.yml