Basic boilerplate for React 16 with Typescript support, Webpack 4, React Router 4. A minimal React project boilerplate suitable for quick app prototyping (front-end only option) or as a starting point for app development (full-stack option).
- React >16.4
- Typescript >3.7
- Webpack 4
- React Router 4
- Babel 7
- ESLint enabled (see instructions below for set-up) with Prettier
- MySQL or MongoDB
git clone https://github.com/BrunoTorresF/modern-react-boilerplate.git -b typescriptcd modern-react-boilerplatenpm i
git clone https://github.com/BrunoTorresF/modern-react-boilerplate.gitcd modern-react-boilerplatenpm install
git clone https://github.com/BrunoTorresF/modern-react-boilerplate.git -b babel-6cd modern-react-boilerplatenpm install
git clone https://github.com/BrunoTorresF/modern-react-boilerplate.git -b no-eslintcd modern-react-boilerplatenpm install
- Start Webpack Dev Server with
npm run frontend
- Start Webpack with
npm run dev - Start nodemon with
npm run start-dev - visit
http://localhost:3000/ - edit your database connection details and delete the database file you're not using
If you don't have ESLint already install, you can install ESLint and the required dependencies with:
npm i -g eslint eslint-config-airbnb eslint-plugin-node babel-eslint eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y prettier eslint-config-prettier eslint-plugin-prettier