Giter Club home page Giter Club logo

wedo's Introduction

Wedo低代码平台

事前准备

  1. 安装 pm2ts-node

    npm install pm2 -g
    npm install ts-node -g
    
  2. 安装 dockerredisMongoDB

    • 启动 redis 服务
    docker pull redis
    docker run --name local-redis -p 6379:6379 -d redis redis-server --requirepass huzhang6
    

    注意:需要修改 redis 的密码,这里示例使用的密码是 huzhang6

  • 启动 MongoDB
docker pull mongo
// 先不加--auth进入,然后在admin库中设置好账号密码再使用--auth验证启动
docker run -itd --name wedo-mongo -p 27017:27017 -v ~/data/db:/data/db mongo --auth

 docker exec -it wedo-mongo mongosh -u huzhang -p 123456 --authenticationDatabase=admin

依赖安装

在根目录的 scripts/hydra 目录下执行以下命令:

# 安装所有项目的所有links
yarn install-links 

# 安装指定项目的links
yarn install-link --name xxx [xxx表示项目名,如@wedo/ui] 

# 安装所有项目依赖
yarn install-deps --type [type: async | sync] (可选) - 包的安装类型。async 表示并行安装,sync 表示串行安装。默认值为 sync。

# 安装指定的项目及其子项目的依赖
yarn install-dep --name xxx --type [type: async | sync] (可选) - 包的安装类型。async 表示并行安装,sync 表示串行安装。默认值为 sync。

启动服务

在根目录的 scripts/hydra 目录下执行以下命令:

yarn dev --name @wedo/xxx [xxx表示server名称]

例如:

yarn dev --name @wedo/svc-packager

脚本将通过 pm2 启动该服务。

wedo's People

Contributors

aiuluna avatar

Stargazers

 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.