MCPcopy Index your code
hub / github.com/Kirk-Wang/Ten-Minutes-App

github.com/Kirk-Wang/Ten-Minutes-App @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
107 symbols 306 edges 33 files 54 documented · 50% updated 3y agov1.0 · 2019-03-31★ 1331 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Ten-Minutes-App

😀 haha~ demo

Traefik + Docker Deploy

base on golang v1.12.x + mongo-go-driver v1.x + gin v1.3.x + mongodb v4.0.6 + JSONPlaceholder, react-admin

使用 Docker 一秒本地搭建 Mongodb&mongo-express 环境

App 介绍: * 基于 react-admin,它很好的抽象出了前端的各种 CRUD 操作,复杂的也可以自定义。 * 前端示例采用 Typescript 作为主要开发语言。 * 为什么选择 Typescript ? 相信 这篇文章 会给你一些答案。 * 使用 Create React App 快速生成脚手架(Adding TypeScript )。 * REST Client for Visual Studio Code。如果你用 VSCode,也许它比 Postman 更好用。 * 使用 DbSchema(请支持正版😝) 对数据进行可视化建模 * Demo

<b>10分钟内快速构建一个完整的应用</b>
  1. Users:路由导航,用户列表,分页,全选,删除(2s 可撤销删除),导出 CSV 文件,点击表头排序
  2. Posts:路由导航,文章列表,分页,全选,删除(2s 可撤销删除),导出 CSV 文件,点击表头排序
  3. 添加文章(针对某个用户)
  4. 编辑文章(2s 可撤销编辑)
  5. 自定义首页(Dashboard)
  6. 添加 AuthProvider(登录自定义处理,适配后端登录,注销功能)并设置登录页。
  7. 添加 DataProvider(数据提供自定义处理,适配后端不同的 API 请求格式和响应)。

                       

Schema

ui-dashboard

ui-post

CI/CD

Drone-CI-CD

Dev

# api
go run .
# app
cd app
yarn & yarn start

Refs

Q

Extension points exported contracts — how you extend this code

PostDatabase (Interface)
The PostDatabase interface for encapsulating database access. [1 implementers]
api/post.go
UserDatabase (Interface)
The UserDatabase interface for encapsulating database access. [1 implementers]
api/user.go

Core symbols most depended-on inside this repo

New
called by 15
model/post.go
Set
called by 6
mode/mode.go
Get
called by 6
mode/mode.go
Close
called by 6
database/database.go
withID
called by 4
api/internalutil.go
IsDev
called by 3
mode/mode.go
New
called by 3
database/database.go
CreatePassword
called by 3
auth/password/password.go

Shape

Method 47
Function 43
Struct 15
Interface 2

Languages

Go87%
TypeScript13%

Modules by API surface

api/post.go13 symbols
database/database_test.go10 symbols
api/user.go10 symbols
database/user.go6 symbols
database/post.go6 symbols
model/user.go5 symbols
app/src/Posts.tsx5 symbols
api/user_test.go5 symbols
test/testdb/database.go4 symbols
mode/mode_test.go4 symbols
mode/mode.go4 symbols
app/src/serviceWorker.ts4 symbols

Datastores touched

usersCollection · 1 repos
postsCollection · 1 repos
(mongodb)Database · 1 repos

For agents

$ claude mcp add Ten-Minutes-App \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact