Git Product home page Git Product logo

react-antd-boilerplate's Introduction

⚛️ Create React Ant Design Boilerplate
GitHub issues GitHub forks GitHub stars GitHub license GitHub code size in bytes GitHub last commit David

Create React App + Ant Design + React Boilerplate

Need to change the REACT_APP_BASE_URL. Here is an example server. https://github.com/PW486/express-ts-starter

Getting Started

> git clone https://github.com/PW486/react-antd-boilerplate.git
> npm install
> npm start

Set Environments

> cp .env.example .env
> vi .env

Building

> npm run build

Developing

  • Remove local branches deleted on remote server
    > git fetch -p && for branch in `git branch -vv --no-color | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
  • Keep the linter and formatter rules
  • Check unused, outdated states of dependencies : depcheck npm-check-updates

Tech Stack

Category Name
Language JavaScript
UI Framework React
State Manager Redux
Side Effect Manager Redux Saga
Selector Reselect
UI Component Ant Design
Authentication JWT
Linter ESLint
Formatter Prettier

Project Structure

Main Directory

src
├── components # Layout, Shared, Custom Components
|  ├── Header
|  ├── PrivateRoute
|  └── Sider
├── containers # Components with a Redux store
|  ├── Board
|  ├── NotFound
|  └── SignIn
├── routes # Routes directory
├── utils # Util directory
├── App.js
├── global.reducer.js
├── global.selectors.js
└── index.js

Board Directory

Board
├── PostTable # Subcomponents
|  └── index.js
├── WritePostModal # Subcomponents
|  └── index.js
├── board.actions.js
├── board.api.js
├── board.constants.js
├── board.reducer.js
├── board.saga.js
├── board.selectors.js
└── index.js

File naming convention is "key of store"."attribute". Subcomponents that will be used only within the page create and use separate directories.

Demo

Create React Ant Design Boilerplate
YouTube

License

Copyright © 2019 DONGGEON LIM.
This project is MIT licensed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.