Any JSON CMS - Admin application server
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 git@github.com:evmizulin/cms-admin.git
cd cms-admin
npm installIn 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: 'api.anyjsoncms.com',
},
}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 ofanyjsoncms.cominforming thatanyjsoncms.comis a demo server, set flag tofalseand it will hide messages;prodAppServerHost- this parameter will be passed ashostto run Node.js server;prodAppServerPort- this parameter will be passed asportto run Node.js server;apiProtocol- protocol of API server;apiHost- host of API server;
To run Admin application server in development environment:
npm startAnd open http://localhost:3000 in your browser.
To run Admin application server in production environment:
npm run build && npm run start.prodYou could see the logs in /logs folder.