项目作者: rekrus

项目描述 :
Express React boilerplate with lerna
高级语言: TypeScript
项目地址: git://github.com/rekrus/express-react-lerna.git
创建时间: 2020-08-01T14:45:24Z
项目社区:https://github.com/rekrus/express-react-lerna

开源协议:MIT License

下载


Express React Boilerplate

It is a Boilerplate starter kit for Javascript application with Express in backend and React (Typescript) in frontend bootstrapped with lerna.

front-end and back-end both uses ESlint for JavaScript common syntax errors and Prettier for style issues and automatically reformats your code to ensure consistent rules are being followed.


Getting Started :zap:

  1. install lerna globally -> npm install -g lerna
  2. Clone the repo -> git clone https://github.com/rekrus/express-react-lerna.git
  3. Install dependencies -> lerna bootstrap
  4. Create .env file in client package -> cp .env.example .env
    // (sets react PORT=5000 and SKIP_PREFLIGHT_CHECK=true and CI=true CRA issue)
  5. Start the app -> npm run start

There you go :tada:


Available scripts :page_facing_up:

npm run start

Runs both frontend and backend packages in development mode.

npm run lint

Runs lint command in both server and client package.

npm run lint:fix

Runs lint fix command in both server and client package.


License :white_check_mark:

The MIT License