If you want to read general information about Any JSON CMS go here.
Any JSON CMS consists of two parts. Admin application server and API server. It is Admin application server.
- Node.js v8 ;
git clone [email protected]:evmizulin/cms-admin.git
cd cms-admin
npm install
In project root folder there are configuration file config.js
. Update it for your needs.
module.exports = {
config: {
isDemo: true,
prodAppServerHost: 'localhost',
prodAppServerPort: 8081,
devApiProtocol: 'http',
prodApiProtocol: 'https',
devApiHost: 'localhost:8080',
prodApiHost: 'some-domain',
},
}
All parameters that have dev
and prod
prefixes, will be used for development and production environments respectively.
isDemo
- there are several messages on the landing page informing that it is a demo server, set flag tofalse
and it will hide messages;prodAppServerHost
- this parameter will be passed ashost
to run Node.js server;prodAppServerPort
- this parameter will be passed asport
to run Node.js server;apiProtocol
- protocol of API server;apiHost
- host of API server;
To run Admin application server in development environment:
npm start
And open http://localhost:3000
in your browser.
To run Admin application server in production environment:
npm run build && npm run start.prod
You could see the logs in /logs
folder.