Skip to content

sigdestad/nextxp-demo

 
 

Repository files navigation

NextJS ♡ Enonic : Front-end part of the Enonic/Next.js headless CMS demo

This is repo is based on https://github.com/enonic/nextjs-enonic-template and represents the end-result of completing the Next.xp tutorial: https://developer.enonic.com/docs/next.xp

Running demo in the cloud

Follow the TLDR; instructions listed on the front-page of the tutorial referenced above.

Running demo locally

  1. Launch local Enonic SDK sandbox (https://developer.enonic.com/start)
  2. Launch Enonic XP admin from http://localhost:8080
  3. From XP menu - Applications - Install the "Next.js demo" app from Enonic Market (back-end part of demo)
  4. Configure and run the Next.js app "nextjs-enonic-demo" (front-end part of demo)
npx degit git@github.com:enonic/nextjs-enonic-demo.git
npm install
npm run dev

Open http://localhost:3000 with your browser to see the result.

Releasing new version

Prepare demo repo

  1. Create new features in a branch
  2. Test and verify the app
  3. Update docs if needed
  4. Create pull-request to master on github
  5. Tag master using git tag v0.9.0 after pull-request is merged

Update template repo

  1. Move all relevant changes to a feature branch in the template repo
  2. Test and verify the changes
  3. Create pull-request to master on github
  4. Tag master branch using git tag v0.9.0 after pull-request is merged

Final step: Release

  1. Merge changes to master for both repositories
  2. Verify that setting up new next app is working according to tutorial
  3. Verify that the TLDR; is working

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.1%
  • CSS 12.7%
  • JavaScript 3.2%