Categorygithub.com/hamster-shared/hamster-develop
modulepackage
1.3.0
Repository: https://github.com/hamster-shared/hamster-develop.git
Documentation: pkg.go.dev

# README

Aline Logo

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:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. 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 环境

    1. 访问Downloads

    2. 下载安装包并执行安装

      image

    3. 配置 go 代理

    #配置代理
     go env -w GOPROXY=https://goproxy.cn,direct
     go env -w GO111MODULE=on
    
  • linux 安装 go 环境

    1. 访问官网下载地址

    2. 下载对应系统安装包

      image

    3. 将下载的压缩包解压,移动到/usr/local/目录下

    4. 配置环境变量

     vim ~/.bash_profile
    

    在文件最后加入以下内容

     # $HOME/go 为工作空间的路径,可自行修改
     export GOPATH=$HOME/go
    

    更新配置

    source ~/.bash_profile
    
    1. 配置 go 代理
    #配置代理
     go env -w GOPROXY=https://goproxy.cn,direct
     go env -w GO111MODULE=on
    
  • macos 安装 go 环境

    1. 访问官网下载地址

    2. 下载对应系统安装包并且安装

      image

    3. 配置 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

  • 从模板创建

    1. 点击创建按钮,进入创建界面

      创建按钮

    2. 在创建页面,选择想要的模板,点击下一步按钮

      模板选择

    3. 进入信息面板,确认信息无误,点击下一步创建按钮

      创建按钮

    4. 成功创建后,在首页即可看到您所创建的 Pipeline

      Pipeline

  • 应用结构

  • 运行 Pipeline:点击运行按钮即可运行

    运行按钮

  • 查看运行结果

    1. 点击卡片进入

      点击卡片

    2. 此页面展示了具体的运行流程及结果

      运行页面

  • 通过 CLI 运行 Pipeline: 在终端运行此代码即可

    ./pkg/service/template/templates/erc20.yml
    

# Packages

No description provided by the author
Copyright © 2022 NAME HERE <EMAIL ADDRESS> */.
No description provided by the author