Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/notbucai/dot-matrix
通过 Koa + Socket.io + Canvas 实现在线点阵画板
https://github.com/notbucai/dot-matrix
canvas canvas2d dot draw koa matrix mongodb nodejs socket-io
Last synced: 2 months ago
JSON representation
通过 Koa + Socket.io + Canvas 实现在线点阵画板
- Host: GitHub
- URL: https://github.com/notbucai/dot-matrix
- Owner: notbucai
- Created: 2019-11-11T10:42:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T14:57:37.000Z (about 2 years ago)
- Last Synced: 2023-03-06T16:08:49.364Z (almost 2 years ago)
- Topics: canvas, canvas2d, dot, draw, koa, matrix, mongodb, nodejs, socket-io
- Language: JavaScript
- Homepage: https://lattice.notbucai.com/
- Size: 1.35 MB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dot-matrix
通过 Koa + Socket.io + Canvas 实现在线点阵画板
> [https://lattice.notbucai.com/](https://lattice.notbucai.com/)## 展示
![show.png](./show.png)
## 使用
> 环境依赖 `mongodb` 、 `nodejs`
1. `yarn` or `npm install`
2. `yarn dev` or `npm run dev`## 目录结构
```
|- /figure 一些图案的点阵坐标
|- /model 数据库模型
|- Content.js 点阵的数据模型
|- /mongodb 数据库工具类
|- db.js mongodb连接库
|- /public 公共静态资源目录
|- index.html 静态文件
|- server.js 服务器
|- Dockerfile Docker 镜像文件
|- docker-compose.yml
|- lattice.conf nginx 配置```