Giter VIP home page Giter VIP logo

datasync-boilerplate's Introduction

Contentstack

Contentstack is a headless CMS with an API-first approach. It is a CMS that developers can use to build powerful cross-platform applications in their favorite languages. Build your application frontend, and Contentstack will take care of the rest. Read More.

Contentstack DataSync Boilerplate

Contentstack DataSync lets you sync your Contentstack data with your database, enabling you to save data locally and serve content directly from your database. It is a combination of four powerful modules that is DataSync Webhook Listener, DataSync Manager, DataSync Asset Store Filesystem, DataSync Content Store โ€” Filesystem and MongoDB.

This boilerplate is a code skeleton that will help you get up and running with Contentstack DataSync. It's a pre-built code that will help you sync your data from the Contentstack server with Filesystem and MongoDB databases.

Prerequisite

  • Node.js 8 or above
  • ngrok for running it on the local system
  • A webhook already set up as follows:
    • Make your contentstack-webhook-listener server available publicly (For local environment, use ngrok)

    • Add your publically available domain with the endpoint specified for the listener. (Default endpoint is /notify so, your URL to Notify will be: http://www.example.com/notify)

    • Copy paste below listed actions in "When" section by switching to "Code View"

      content_types.entries.environments.development.publish.success,
      assets.environments.development.publish.success,
      assets.environments.development.unpublish.success,
      content_types.entries.environments.development.unpublish.success,
      content_types.entries.delete,
      content_types.delete,
      assets.delete
      

Configuration

Add following configurations to config/all.js or to your config/{{environment-name}}.js file:

module.exports = {
    contentstack: {
        apiKey: '<<YOUR API KEY>>',
        token: '<<DELIVERY TOKEN>>',
        host: '<<HOST>>'
    },
   contentStoreModule: '<<MODULE NAME>>',
   assetStoreModule: '<<MODULE NAME>>',
   listenerModule: '<<MODULE NAME>>'
}

The following content store modules are available

The following asset store modules are available

Install all dependencies

npm install

Start the service

 npm start 

Further Reading

Support and Feature requests

If you have any issues working with the library, please file an issue here at Github.

You can send us an e-mail at [email protected] if you have any support or feature requests. Our support team is available 24/7 on the intercom. You can always get in touch and give us an opportunity to serve you better!

License

This repository is published under the MIT license.

datasync-boilerplate's People

Contributors

aravindbuilt avatar iyerrama29 avatar aman19k avatar abhinav-from-contentstack avatar vkalta avatar netrajpatel avatar snyk-bot avatar almeida-shrutika avatar cs-raj avatar antonyagustine avatar ninadhatkar avatar contentstack-admin avatar nandeesh-gajula avatar shafeeqd959 avatar

Stargazers

 avatar

Watchers

Mayank avatar dhaval avatar Nikhil Jain avatar  avatar  avatar James Cloos avatar Pradeep avatar  avatar Sunil Nadar avatar Hitesh Baldaniya avatar kego avatar Roshan Gade avatar Rishiraj Upadhyay avatar Rohit Mishra avatar  avatar  avatar  avatar

Forkers

omspace

datasync-boilerplate's Issues

Update dependencies

When trying to use Mongo as Content-store will face issues with options object, as many of those fields are deprecated. Seems that the issue is fixed with @contentstack/datasync-content-store-mongodb v 1.0.3 but need to be updated here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.