Skip to content

Latest commit

Β 

History

History
75 lines (54 loc) Β· 3.08 KB

File metadata and controls

75 lines (54 loc) Β· 3.08 KB

Boilerplate for a Basic React and Ant Design Application


πŸš€ Bootstrap your React Ant Design App in seconds
Basic starter kit for a React and Ant Design Application - based on best practices from the React community.

Features

  • Webpack 4: Includes configuration for production and development mode
  • Ant Design Components Includes integration with Ant Design Components
  • Extensible: Simple and flexible – easy to adjust and extend
  • No configuration overhead: Preconfigured webpack.config.babel.js and webpack.config.dev.babel.js

Requirements

You need to have the Yarn installed to bootstrap your React and Ant Design App using yarn install

npm i -g yarn

Getting started

# 1. Clone the project
git clone git@github.com:inspired-solutions/react-antd-starter.git

# 2. Navigate to the new project
cd react-antd-starter

# 3. Install dependencies
yarn

# 4. Start server (runs on http://localhost:4000)
yarn dev

Documentation

Commands

  • yarn build generate compile files on ./dist folder
  • yarn dev starts server in development mode on http://localhost:4000
  • yarn test run jest form tests (*.test.js or *.spec.js or in __test__ directory)

Note: We recommend that you're using yarn to install packages from packages.json and npm to install global packages like yarn

Project structure

File name γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€ Description γ€€γ€€γ€€γ€€γ€€γ€€γ€€γ€€

└── src/ Contains all files that are related to the React and Ant Design Application
γ€€γ€€β”œβ”€β”€ App.js React Application
γ€€γ€€β”œβ”€β”€ App.scss Main Styles
γ€€γ€€β”œβ”€β”€ App.test.js Test for the Application
γ€€γ€€β”œβ”€β”€ index.js Main file related to Webpack
γ€€γ€€β”œβ”€β”€ index.pug Main Template
β”œβ”€β”€ .babelrc Config for Babel
β”œβ”€β”€ .editorconfig Config for editor
β”œβ”€β”€ .eslintrc Config for Eslint
β”œβ”€β”€ .gitignore Config file for ingore files
β”œβ”€β”€ .prettierrc Config for Prettier
β”œβ”€β”€ package.json Package file
β”œβ”€β”€ README.md Main Documentaion
β”œβ”€β”€ webpack.config.babel.js Webpack config for production
β”œβ”€β”€ webpack.config.dev.babel.js Webpack config for development
β”œβ”€β”€ yarn.lock Lock file generate by Yarn

Contributing

The react-antd-starter are maintained by the Inspired Solutions.

Your feedback is very helpful, please share your opinion and thoughts! If you have any questions or want to contribute yourself, join the #react-antd-starter channel on our Slack.