像Notion.so一样编辑笔记。使用React/Express构建的全栈应用。
这个克隆项目试图复刻 Notion 的一些出色笔记功能。如果你还不了解 Notion.so,我强烈推荐你去看看!
在线演示:notion-clone.kmuenster.com
Medium 文章:如何构建一个像 Notion 一样的文本编辑器
/ 可将块转换为不同类型的内容)<a>)/image 命令上传图片)前端使用 Next.js 构建,并完全采用服务端渲染。后端通过 REST API 处理用户内容保存和用户管理。
Next.js · React.js · SCSS/SASS
Express.js · MongoDB 配合 Mongoose · Nodemailer · JWT(基于 Cookie)
git clone https://github.com/konstantinmuenster/notion-clone.git
cd notion-clone添加环境变量
后端:在 backend 目录中创建 .env 文件:
FRONTEND_URL="http://localhost:3000"
DOMAIN="localhost"
JWT_KEY="yourSecretForTokenGeneration"
PORT=8080
MONGO_URI="mongodb+srv://username:[email protected]/database?retryWrites=true&w=majority"
MAIL_HOST="smtp.sendgrid.net"
MAIL_PORT=465
MAIL_USER="apiKey"
MAIL_SENDER="Your Name <[email protected]>"
MAIL_PASSWORD="yourSendGridApiKey" 前端:在 frontend 目录中创建 .env.local 文件:
NEXT_PUBLIC_API="http://localhost:8080" // references your Backend API endpoint cd backend
npm install
npm start
```
4. **安装**暂无开放 Issues,或尚未同步最近议题。