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
lernaglobally ->npm install -g lerna - Clone the repo ->
git clone https://github.com/rohit-ambre/express-react-lerna.git - Install dependencies ->
lerna bootstrap - Create
.envfile in client package ->cp .env.example .env// (sets reactPORT=5000andSKIP_PREFLIGHT_CHECK=trueandCI=trueCRA 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.