Skip to content
This repository was archived by the owner on Sep 10, 2019. It is now read-only.
/ react-cms Public archive

cotent manager system based on ant design.

Notifications You must be signed in to change notification settings

narrowizard/react-cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-cms

cotent manager system based on ant design.

updated 2019-09-10

Please use react-cms-ts.

updated 2019-07-12

Deprecated.
In the latest update of nirvana-cms and nirvana-cms-auth, we made some broken change to its api. This project will never be supported, you should make your own implement of frontend project to use nirvana-cms system.

usage

git clone https://github.com/narrowizard/react-cms.git
# install node proxy dependency
npm install
cd app
# install react app dependency.
npm install
# build react app
npm run build
cd ..
# start node proxy server
npm start

config

config proxy info in config.js.

/**
 * nirvana-cms-auth project host.
 */
exports.authProxyConfig = {
    protocol: "http:",
    hostname: "127.0.0.1",
    port: "8081",
}

/**
 * setting proxy table
 * tips: /auth router segement is kept to cms usage. 
 */
exports.proxyTable = {
    "/user": '10.0.0.236:8080' // nirvana-cms project host
    "/myapi": 'api.mydomain.com' // config your own proxy here, normally an intranet address.
}

/**
 * page router for production mode.
 */
exports.pageRouter = ["/login", "/layout", "/layout/*"]

development

in develepment mode, static resource request will be proxy to localhost:8080(configured in proxy props of app/package.json).

npm start # start node proxy, default localhost:8080
cd app
npm start # run react dev server, default localhost:3000

optimize

  • login field real-time validation.
  • cancel async request in componentDidUnMount
  • redirect to login page if request returns 403 Login:UnLoginError

About

cotent manager system based on ant design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published