Giter VIP home page Giter VIP logo

nodebook's Introduction

nodebook

nodebook

sudo docker pull registry.cn-hangzhou.aliyuncs.com/wujingtao/nodebook:[发布版本号]

screenshot

简介

类似于 VScode 的在线代码编辑器。当初开发这款编辑器的目的是为了能够方便的在服务器上进行代码编辑,类似于jupyter,用于数据挖掘方面的研究,不过现在 VScode 原生支持远程开发浏览器运行了所以就将代码开源出来,不过到目前为止(2019 年)该编辑器还是有一些功能上的优势。

主要功能

  • 支持命令行 terminal
  • 支持 Node 远程调试
  • Node 进程管理,和进程崩溃邮件提醒
  • Node 进程网页间消息通信
  • 自动代码备份
  • 支持思维导图

代码命名规范

  • 所有服务器端代码全部以*.server.js命名
  • 所有浏览器端代码全部以*.client.js命名
  • 思维导图文件以.mindmap结尾

默认用户名、密码

Docker 环境变量

  • DOMAIN 网站的域名
  • DEBUG 是否开启调试模式
  • TZ 时区,默认是上海

Docker 挂载点

  • /user_data 用户数据目录
  • /program_data 程序数据目录
  • /key 存放 HTTPS 证书的目录
    • ./privkey.pem openssl 私钥密码
    • ./cert.pem openssl 公钥路径
    • ./password.pem openssl 私钥密码(没有可以忽略)

加密备份文件编码

在使用解压软件打开加密备份文件时可能会出现乱码,将解压软件的字符编码选择为UTF8即可

npm script 说明

  • npm run compileServer 编译服务器端代码
  • npm run compileClient 编译浏览器端代码
  • npm run compileClientWatch 以 Webpack Watch 模式编译浏览器端代码
  • npm run resetUser 重置数据库中的用户名与密码
  • npm run cleanIPFilter 清空数据库中的 IP 访问限制
  • npm run resumeFromBackup 从备份文件恢复用户数据。使用时需要传入备份文件的文件名(不是文件的绝对路径)

更新或添加浏览器端编辑器的代码提示依赖

src/Client/module/MainWindow/Area/ContentWindow/Windows/CodeEditorWindow/CodeEditorWindowContent.tsx

版本依赖提示

  • "video-react": "0.13.2" 就使用这个版本,新版本用 babel 打包,大小会增大许多
  • "monaco-editor": "0.16.0" 高于这个版本会与 "monaco-editor-webpack-plugin": "1.7.0" 出现兼容性问题

nodebook's People

Contributors

dependabot[bot] avatar wu-jingtao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.