Giter Site home page Giter Site logo

imwinglau / reg-dict Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nestattacked/reg-dict

0.0 0.0 0.0 8.74 MB

regdict是一个开源的英语词典,支持类似于正则表达式规则的查询方式

Home Page: https://app.nestattacked.com/regdict/

TypeScript 99.56% HTML 0.44%

reg-dict's Introduction

regdict

regdict是一个开源的英语词典,支持类似于正则表达式规则的查询方式

demo

前置准备

项目需要使用 node18 以上版本,可以使用 nvm 管理多个 node 版本

如果你使用 vscode ,可以安装这些插件:eslintstylelint,以开启代码检查功能

在项目根目录执行 yarn

客户端

快速上手

进入客户端代码目录

cd client

安装依赖

yarn

准备配置文件

拷贝一份 client/src/config.example.tsclient/src/config.ts

编译

yarn build

编译结果存放于 client/build 目录下,将里面的所有文件拷贝到你的 Web 服务器上就行

开发

yarn dev

支持热加载,修改代码后,自动刷新页面

服务端

快速上手

进入服务端代码目录

cd server

准备数据

参考 server/data 准备好你的字典数据

安装依赖

yarn

准备配置文件

拷贝一份 server/src/config.example.mtsserver/src/config.mts

编译

yarn build

编译结果存放于 server/build 目录下,index.mjs 可以直接被运行

开发

yarn dev

支持热加载,修改代码后,自动重新加载

调试

yarn debug

执行命令后,在 vscode 调试界面启动调试

reg-dict's People

Contributors

nestattacked 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.