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 code styling issues and automatically reformats your code to ensure consistent rules are being followed.
- install
lerna
globally ->npm install -g lerna
- Clone the repo ->
git clone https://github.com/rohit-ambre/express-react-lerna.git
- Install dependencies ->
lerna bootstrap
- Create
.env
file in client package ->cp .env.example .env
// (sets reactPORT=5000
andSKIP_PREFLIGHT_CHECK=true
andCI=true
CRA issue) - Start the app ->
npm run start
There you go 🎉
Runs both frontend and backend packages in development
mode.
Runs lint command in both server and client package.
Runs lint fix command in both server and client package.