cotent manager system based on ant design.
Please use react-cms-ts.
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.
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 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/*"]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- login field real-time validation.
- cancel async request in componentDidUnMount
- redirect to login page if request returns 403 Login:UnLoginError