go explorer
v0.8.1
这是Go Explorer的家。
GO Explorer允许您在没有设置的情况下学习,探索和尝试GO编程语言,并且需要安装实际的编译器。
以下列出了所有当前可用的功能:
语言:打字稿
前端是使用React构建,并且使用Nodejs和Express构建后端服务器。
GO源代码在Docker容器中执行,以正确隔离执行。 Nginx用作负载平衡器和应用程序的反向代理。
容器上没有完全禁用网络连接。因此,进入外界的访问被阻止。
容器可以使用的可用CPU资源有限。
总编译和执行时间受容器的限制。
cd go-explorer/frontend && npm install
cd go-explorer/backend && npm install
cd go-explorer/frontend
npm run start:dev
这将启动开发服务器,允许热加载。
cd go-explorer/backend
npm run start:dev
git pull golang:1.1(6/7/8-rc)
您可以配置将.ENV文件放置在Go-explorer/Frontend和Go-explorer/后端文件夹的根部的环境变量。
| env | 需要 | 默认 | 评论 |
|---|---|---|---|
| golang_versions | 不 | 1.17 | 半分离的可用版本列表 |
| 港口 | 不 | 5000 |
| env | 需要 | 默认 | 评论 |
|---|---|---|---|
| golang_versions | 不 | 1.17 | 半分离的可用版本列表 |
| 港口 | 不 | 3000 | |
| api_base_url | 不 | http:// localhost:5000/api | |
| base_url | 不 | http:// localhost:3000 |
运行后端测试:
npm run test
运行前端E2E测试:
npm run test:e2e
指导
该应用程序应适用于相对现代的浏览器。它已通过Firefox(95),Chrome(96)和Edge(96)进行了测试。
麻省理工学院