leaa

Leaa is a monorepo restful CMS / Admin built with Nest.js (@nestjsx/crud, node.js) and Ant Design.

BSD-3-CLAUSE License

Stars
473

Leaa (project 1d1h)

Leaa is a monorepo CMS (Content Management System) built with Nest.js, Next.js, and Ant Design.

Monorepo-Packages

  • leaa-api / backend (Nest.js + @nestjsx/crud + MySQL + Docker Compose)
  • leaa-dashboard (demo) / dashboard (React.js + Antd + MobX)
  • leaa-www / website (Next.js)
  • leaa-miniprogram (independence-repo) / wechat-miniprogram (Taro.js + Taro-ui + GraphQL)
  • leaa-app (independence-repo) / iOS and Android (expo + GraphQL)

Install

View the README.md of each sub-directory in packages. You may need to look at yarn workspaces first.

Dashboard (demo)

dashboard UI

Legacy

TODOS

TODOS

DEV SUMMARY

5

React JSX App GraphQL

api``dashboard``www miniprogram ( mp) app web HTML web fuckingSelf a mp app a a web App

RN monorepo TS RN RN + monorepo + TS

monorepo 5 TS interface mp app mp app monorepo web reponode_modules yarn install CPU yarn workspaces mono lerna lerna monorepo mono multi

5 mp > app > www > api > dashboard

mp mp devtools bug bug devtools Taro custom-tab-bar Taro custom-tab-bar leaa Github

www (Next.js v9) Next.js exampleSSR Next.js 8to9zeit

monorepo Components/Filter/index.tsx Components/Filter/Filter.tsx cmd +p

Anywhere Docker Api UI/UX leaa

leaa bug Github leaa leaa 2019-09-17 17:01 @ Guangxi Hezhou

DEV LOG

2019-08-01 23:39

git commit DEV LOG 1d1h Blog -> CMS -> Sohp API / Dashboard / Website / Wechat Weapp / React Native (iOS / Android) monorepo interface / entry

share

Dashboard Dashboard

  • /

Blog Dashboard graphql restful

Nest.js Typescript @kamilmysliwiec Nest.js

dashboard React + Antd hooks Apollo hooks beta Class hooks Class 10 hooks 5 Fn Class share Class Fn

www Next.js React-SSR @Guillermo Next.js www Next.js v9 core TS

AntdClient pages less cssModuleAntd Server less withLess 60% 40% Next.jsCRA webpack

CRA expo Next.js 100% withPlugin Github v9 fuckingself webpack Next.js webpack withPlugin context resolve issue close issue Next.js + antd withLess

2019-08-15 20:45

leaa OSS

  • Local
  • OSS
  • OSS Local
  • OSS @2x @1x OSS
  • OSS @2x @1x OSS Local
  • OSS @1x @2x Local @1x @2x
  • Local OSS
  • OSS OSS

Local OSS OSS API OSS Callback DB API API put OSS OSS

www api dashboard miniprogram

2019-08-16 12:04

package React 16.9.0console Warning: componentWillMount... React CHANGELOG lifecycle leaa-dashboard antd antd warning React "react": "16.8.6", "react-dom": "16.8.6"

2019-08-16 15:07

Leaa Stack Banner README Leaa La Seydoux Lea a LEAA Google Law Enforcement Assistance Administration

2019-08-17 11:21

lint error packages/leaa-dashboard/src/pages/Permission/PermissionList/PermissionList.tsx L159 .prettierrc printWidth .eslintrc.js max-len 120 prettier eslint 120

eslint-disable-next-line max-len > >= max-len

2019-08-17 14:16

style code IDE keymap marco prettier eslint format public contributors hhh git commit code style

husky monorepo git commit packages eslint lint-staged eslint git stage eslint

monorepo non-monorepo pacakge.json

module.exports = {
  'packages/**/*.ts?(x)': ['prettier --write', 'eslint', 'git add'],
  'packages/**/*.(css|less)': ['prettier --write', 'stylelint', 'git add'],
};

2019-08-18 11:42

Taro React to `` ONLY ONLY

Taro `` ```` RN `yoga` CSS

H5

Web HRM css module webpack run RN taro-ui UI lib @tarojs/component taro-ui RN

run debug tools monorepo monorepo monorepo monorepo run

can't find module : ../../../node_modules/@tarojs/taro-weapp/

issues monorepo yarn wokespaces nohoist Taro sub-package share modules

{
  "nohoist": ["**/@tarojs/**"]
}
React Native

package.json dev:rn run docs RN Taro RN 0.55.4, 0.60.x RN 0.60.x Android HermesRN@Taro @tarojs/component UI lib NativeBase Shoutem RN UI lib

`` RN@Taro `taro-ui` `RN`

Taro ONLY for OKleaa-app RN expo

2019-08-18 22:18

Taro

  • @apollo/react-hooks react-apollo Apollo useQuery <Query> hooks Invariant Violation: Invalid hook call. export apolloClient apolloClient.query()

  • H5 debugapolloClient `` error fetch is not found globally and no fetcher passed, to fix pass.... fetch lib wx-apollo-fetcher

return new Promise(resolve =>
wx.request({
    ...
    complete: ({ data, statusCode, errMsg }) => resolve({...})
}))

HttpLink fetch: wxApolloFetcher

  • alias issues `` H5 `monorepo` share `@leaa/common`

RN

READING MORE...