Ninja Pirate Marksman

    contentstack-express

    3.4.0 • Public • Published

    Contentstack

    Contentstack web application framework based on Express

    NOTE: This library has been deprecated. Contentstack will soon stop supporting this framework. Instead, we recommend using DataSync, which is faster and more flexible than the web framework.

    Install CLI

    Note

    • This library has been deprecated. Contentstack will soon stop supporting this framework. Instead, we recommend using DataSync, which is faster and more flexible than the web framework.
    • This version of Contentstack CLI & Contentstack Express can be used only for V3 stacks. Use CLI version 1.x, for V2 stacks.

    Run the following command in a Terminal or Command Prompt to globally install the latest version of Contentstack CLI on your system:

    npm install -g contentstack-cli

    You may need administrator privileges to perform this installation.

    Connect to a Stack

    Start building your web application by connecting it to your existing stack.

    Navigate to your workspace in the terminal, and run the 'connect' command.

    contentstack connect

    This will prompt you to enter the stack's api key and access token. You can find these details in the Settings > Stack page.

    Enter your stack api key: {API_KEY}
    Enter your stack access token: {ACCESS_TOKEN}

    This will validate the stack. Once validated, you will be prompted to enter the project root directory and select one of the publishing environments of your stack.

    Enter the name of the directory to contain the project: (my-site)
    Select the publishing environment:
    1. development
    2. staging
    ...

    This will automatically configure your project for the selected publishing environment along with basic theme for the website.

    Run the Site

    Navigate to this folder and start the site.

    cd my-site
    npm start

    Links

    License

    Copyright © 2019 Contentstack. All Rights Reserved.

    Keywords

    none

    Install

    npm i contentstack-express

    DownloadsWeekly Downloads

    3

    Version

    3.4.0

    License

    MIT

    Unpacked Size

    764 kB

    Total Files

    128

    Last publish

    Collaborators

    • hiteshbal
    • mynk
    • ninadh