2025-07-24 07:58:02 +00:00
# DevStar
2016-12-19 21:30:52 +08:00
2025-11-30 07:29:05 +00:00
The Last Mile of Al for R&D
2014-03-13 02:55:14 -04:00
2014-02-12 12:49:46 -05:00
## Purpose
2025-11-30 07:29:05 +00:00
DevStar Studio是为AI时代打造的新一代一站式智能研发平台, 面向人类开发者和AI开发者的融合团队, 专注于产品质量和团队效能, 为研发部门赋能提效。
2022-07-14 23:15:35 +12:00
2025-11-30 07:29:05 +00:00
As [Gitea ](https://github.com/go-gitea/gitea ) is written in Go, it works across **all ** the platforms and
2022-07-14 23:15:35 +12:00
architectures that are supported by Go, including Linux, macOS, and
Windows on x86, amd64, ARM and PowerPC architectures.
2017-08-30 03:27:23 +02:00
This project has been
2023-07-12 19:35:07 +08:00
[forked ](https://blog.gitea.com/welcome-to-gitea/ ) from
2022-07-14 23:15:35 +12:00
[Gogs ](https://gogs.io ) since November of 2016, but a lot has changed.
2015-10-29 03:21:59 -04:00
2025-11-30 07:29:05 +00:00
* For online demonstrations, you can visit [DevStar.cn ](https://DevStar.cn ).
* You can find comprehensive documentation on our official [documentation website ](https://mengning.com.cn/src/devstar/ ).
* If you have any suggestions or would like to contribute to it, you can visit [devstar/docs ](/docs ) and the [documentation repository ](https://devstar.cn/devstar/docs )
2025-01-10 17:03:07 +09:00
2018-01-01 14:38:49 +01:00
## Building
2015-09-12 09:21:09 -04:00
2025-11-30 07:29:05 +00:00
Build devstar-studio:latest From the root of the source tree, run::
```
make devstar
```
or Build a binary file named `gitea` From the root of the source tree, run:
2014-02-12 12:49:46 -05:00
2019-12-08 17:56:59 +01:00
TAGS="bindata" make build
2014-02-12 12:49:46 -05:00
2021-12-24 04:56:57 +01:00
or if SQLite support is required:
2020-01-29 02:30:02 +00:00
2025-07-24 07:58:02 +00:00
TAGS="bindata timetzdata sqlite sqlite_unlock_notify" make build
2020-01-29 02:30:02 +00:00
2020-02-22 10:15:11 +01:00
The `build` target is split into two sub-targets:
2023-08-29 11:09:44 +02:00
- `make backend` which requires [Go Stable ](https://go.dev/dl/ ), the required version is defined in [go.mod ](/go.mod ).
- `make frontend` which requires [Node.js LTS ](https://nodejs.org/en/download/ ) or greater.
2020-02-22 10:15:11 +01:00
2023-08-29 11:09:44 +02:00
Internet connectivity is required to download the go and npm modules. When building from the official source tarballs which include pre-built frontend files, the `frontend` target will not be triggered, making it possible to build without Node.js.
2020-02-22 10:15:11 +01:00
2023-08-27 19:59:12 +08:00
More info: https://docs.gitea.com/installation/install-from-source
2018-01-01 14:38:49 +01:00
## Using
2025-11-30 07:29:05 +00:00
Build and Start from Container Image:
2025-07-24 07:58:02 +00:00
```
2025-11-30 07:29:05 +00:00
make devstar # Build devstar-studio:latest
2025-08-10 06:38:14 +00:00
public/assets/install.sh start --image=devstar-studio:latest
2025-07-24 07:58:02 +00:00
# 查看日志
public/assets/install.sh logs
# 停止并删除devstar-studio容器
public/assets/install.sh clean
# 删除所有容器
sudo docker stop $(docker ps -aq) && sudo docker rm -f $(docker ps -aq)
```
2025-11-30 07:29:05 +00:00
or, After building, a binary file named `gitea` will be generated in the root of the source tree by default. To run it, use:
./gitea web
> [!NOTE]
> devcontainer相关功能不能在localhost域名下正常工作, 调试环境请在custom/conf/app.ini中修改为IP地址
2016-11-28 14:34:06 +01:00
## Contributing
2018-01-01 14:38:49 +01:00
Expected workflow is: Fork -> Patch -> Push -> Pull Request
2025-07-24 07:58:02 +00:00
如果您是在Windows环境下, 请在cmd命令行下先运行如下命令:
```
wsl --install -d Ubuntu-20.04 && wsl --setdefault Ubuntu-20.04
```
在Ubuntu-20.04下完成安装:
```bash
# download and install go
2025-08-10 06:38:14 +00:00
wget -c https://go.dev/dl/go1.24.6.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.24.6.linux-amd64.tar.gz
2025-07-24 07:58:02 +00:00
export PATH=$PATH:/usr/local/go/bin
go version
# download and install Node.js
wget -c https://nodejs.org/dist/v22.11.0/node-v22.11.0-linux-x64.tar.xz
sudo tar -xf node-v22.11.0-linux-x64.tar.xz -C /usr/local/
echo 'export PATH=/usr/local/node-v22.11.0-linux-x64/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
node -v # should print `v22.11.0`
npm -v # should print `10.9.0`
```
在DevStar Git仓库创建分支
```
2025-11-30 07:29:05 +00:00
git clone https://devstar.cn/devstar/devstar.git
2025-07-24 07:58:02 +00:00
git checkout -b YOUR_BRANCH
code devstar
# in VS Code Terminal
TAGS="timetzdata sqlite sqlite_unlock_notify" make watch # for debuging
make test # testing
TAGS="bindata timetzdata sqlite sqlite_unlock_notify" make build # 生成可执行文件
./gitea
2025-11-30 07:29:05 +00:00
# 镜像方式安装验证
make devstar # Build devstar-studio:latest
public/assets/install.sh start --image=devstar-studio:latest
2025-07-24 07:58:02 +00:00
# 提交代码
git add FILES
git commit -m "commit log"
git push
```
2025-08-10 06:38:14 +00:00
在DevStar Git仓库发起Pull Request, 合并代码后会自动触发CI流水线完成容器镜像的构建并上传到 mengning997/devstar-studio:latest 和 devstar.cn/devstar/devstar-studio:latest
2025-07-24 07:58:02 +00:00
```
public/assets/install.sh start
```
2024-02-12 23:14:24 +02:00
> [!NOTE]
>
> 1. **YOU MUST READ THE [CONTRIBUTORS GUIDE](CONTRIBUTING.md) BEFORE STARTING TO WORK ON A PULL REQUEST.**
2025-11-30 07:29:05 +00:00
> 2. If you have found a vulnerability in the project, please write privately to **contact@mengning.com.cn**. Thanks!
2021-05-12 21:02:55 +06:00
2025-01-10 17:03:07 +09:00
## Official and Third-Party Projects
2021-05-12 21:02:55 +06:00
2025-11-30 07:29:05 +00:00
* [webTerminal ](https://devstar.cn/devstar/webTerminal ) for DevStar devcontainer
* [devstar-vscode ](https://devstar.cn/devstar/devstar-vscode )
* [action runner ](https://devstar.cn/devstar/act_runner ) for DevStar Action
* [go-sdk ](https://gitea.com/gitea/go-sdk )
* a CLI tool called [tea ](https://gitea.com/gitea/tea )
2018-01-01 14:38:49 +01:00
2025-01-10 17:03:07 +09:00
We maintain a list of Gitea-related projects at [gitea/awesome-gitea ](https://gitea.com/gitea/awesome-gitea ), where you can discover more third-party projects, including SDKs, plugins, themes, and more.
2020-12-06 14:56:46 +01:00
2014-03-28 00:34:12 +08:00
## License
2025-11-30 07:29:05 +00:00
This project is licensed under the AGPL-3.0 License.
2025-02-18 17:10:30 +09:00
2025-11-30 07:29:05 +00:00
> * **Community Edition (Free):**
> * Includes the standalone version of DevStar Studio.
> * Free to use and deploy.
> * Technical support is not included.
> * **Enterprise Edition (Paid):**
> * Requires a commercial license.
> * Unlocks Kubernetes-related features and other advanced functionalities.
> * Includes technical support.
2025-01-10 17:03:07 +09:00
2025-11-30 07:29:05 +00:00
See the [LICENSE ](https://github.com/mengning/DevStar/blob/main/LICENSE ) file for the full license text.