node.js web framework for Built.io Contentstack
Notice: This framework has been deprecated and will be retired from Built.io Contentstack soon. It is highly recommended that you switch to the contentstack-express instead.
Run the following command in a Terminal or Command Prompt to globally install the latest version of Built.io Contentstack framework on your system:
$ npm install -g contentstack-framework
You might need administrator privileges to perform this installation.
Setup a site
Navigate to a folder of your choice in the Terminal and create a site.
$ contentstack create$ What would you like to do?Create a new site.Connect to an existing site.
Choose the first option and you'll be guided through a step-by-step procedure to create the directory where the site's files will be kept. Authenticate using your email id and password before doing so.
$ Enter the site name: my_new_site$ Enter name of the directory to contain the project:
Then create a publishing environment where the content will be made available.
$ Enter the publishing environment name:$ Enter the endpoint
The site development folder houses all templates and configuration files related to the website. The framework will navigate to this folder and install the site dependencies automatically.
Run the Site
Navigate to this folder and start the application.
$ cd my_new_site$ npm start
The default environment is 'development' with '4000' port.