Skip to content

πŸ‘² πŸ‘¬ πŸ‘¨β€πŸ‘©β€πŸ‘§ πŸ‘¨β€πŸ‘©β€πŸ‘¦β€πŸ‘¦

Notifications You must be signed in to change notification settings

colorzzr/Dva-React-Andt-Server

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Color's Web Server

Using ant-design + dva + React. Parse-API is need for Postgresql. Operating Golang Program in back-end


Getting Started

Install dependencies.

$ npm install

or

$ yarn

Start server.

$ npm start

or

$ yarn start

If success, app will be open in your default browser automatically.

Few Important Note

Introduction to Dva

React component life cycle:

component start with the componentWillMount -> componentDidMount -> render

the component will reload ONLY IF the state of component is changed


dva-loading:

dva-loading is used to help controlling asynchronized request.(To back or database)

once using the app.use(createLoading()), dva would give global models callloading with following structure

{
	global: false,
	models:{},
	effects:{},
}

Note here! there is noting in models and effects is empty. because dva does not know what model you have.

once the model is excuting the effects(OK Here! effects not reducers!!), dva would automaticly adding the

models and effects,

About

πŸ‘² πŸ‘¬ πŸ‘¨β€πŸ‘©β€πŸ‘§ πŸ‘¨β€πŸ‘©β€πŸ‘¦β€πŸ‘¦

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.4%
  • CSS 7.1%
  • C++ 1.1%
  • HTML 0.4%