Skip to content

evmizulin/cms-admin

Repository files navigation

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.

Installation

Step 1. Install the required dependencies.

Step 2. Install the Admin application server.

git clone [email protected]:evmizulin/cms-admin.git
cd cms-admin
npm install

Step 3. Update configuration file.

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 to false and it will hide messages;
  • prodAppServerHost - this parameter will be passed as host to run Node.js server;
  • prodAppServerPort - this parameter will be passed as port to run Node.js server;
  • apiProtocol - protocol of API server;
  • apiHost - host of API server;

Step 4. Run Admin application 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.

About

Admin application server of Any JSON CMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages