An open API service indexing awesome lists of open source software.

https://github.com/fromsko/codebox


https://github.com/fromsko/codebox

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# codeBox

> 是一款采用用于对接本地 Ollama 进行快速聊天的程序
>
> 开箱即用,自动识别 Ollama 中的模型

[![Build and Release Wails App](https://github.com/Fromsko/codeBox/actions/workflows/main.yaml/badge.svg?branch=dev)](https://github.com/Fromsko/codeBox/actions/workflows/main.yaml)

## 📑 功能模块

- 实时聊天
- 截屏记录
- 复制消息
- 历史记录
- 访问控制

## 🚀 安装

> 推荐直接下载 release 文件构建的包
>
> 配置 Golang + NodeJs
>
> 推荐 [nvm-windows](https://github.com/coreybutler/nvm-windows)

Golang 验证

```shell
# 验证安装
go version

# 设置七牛云代理
go env -w GOPROXY=https://goproxy.cn,direct

# 验证代理设置
go env | grep GOPROXY

# 设置Go Module支持
go env -w GO111MODULE=on

# 验证Go Module设置
go env | grep GO111MODULE
```

Nodejs 验证

```shell
# 验证安装
node -v

# 设置淘宝代理
npm config set registry https://registry.npm.taobao.org
```

### 👨‍💻 安装 wails

[官方文档](https://wails.io/zh-Hans/docs/gettingstarted/installation/)

```shell
go install github.com/wailsapp/wails/v2/cmd/wails@latest
```

### 构建项目

1. 检查缺少什么环境

```shell
wails doctor
```

2. **构建**

- 基础

```shell
wails build
```

- win 安装包 + 压缩

```shell
wails build -nsis -upx
```

3. **开发**

```shell
wails dev
```

## 界面展示

- 主页面



- 演示



## 👨‍🔬 鸣谢

- [wails](https://wails.io/)
- [vue.js](https://cn.vuejs.org/)