You can also refer to my blog regarding this integration.
Clone the repo
git clone https://github.com/shucoll/next-editor-js-example
Install the dependencies
npm install
Run the app in the development mode. Open http://localhost:3000 to view it in the browser.
npm run dev