This middleware lets you preview content from Contentstack in real-time while editing it in the CMS with a BFF (Node JS in this case).
Contentstack Site:
- Go to Marketplace > Starter
- Install Angular Starter
- Go to Settings > Live Preview > Enable Live Preview with proper Environment and Preview url. Ex: Default Preview Environment: developement, Default Preview URL: http://localhost:3000/
- To see the live editing in action, go to Entries > Pages > Home and make changes.
Angular code:
- Go to environmanet.ts add your base URL for BFF
base_url: "http://localhost:5000"
Node JS code:
- Refer to the .env.sample file, create a new .env file, and add your credentials.