rsnext/examples/with-monaco-editor
Joe Haddad db5b5a76a8
Update some examples to Vercel (#13477)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-05-28 13:32:29 +02:00
..
pages Fixing Redundant React imports on next.js/examples (#13384) 2020-05-26 15:03:58 +00:00
code-sample.js Add monaco-editor example (#11232) 2020-05-18 13:21:13 -04:00
next.config.js with-monaco-editor-example-fix (#13186) 2020-05-22 20:11:01 +02:00
package.json Add monaco-editor example (#11232) 2020-05-18 13:21:13 -04:00
README.md Update some examples to Vercel (#13477) 2020-05-28 13:32:29 +02:00

Example app with Monaco Editor

This example adds support for Monaco Editor integration using the react-monaco-editor library.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Using create-next-app

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-monaco-editor with-monaco-editor-app
# or
yarn create next-app --example with-monaco-editor with-monaco-editor-app

Download manually

Download the example:

curl https://codeload.github.com/vercel/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/with-monaco-editor
cd with-monaco-editor

Install it and run:

npm install
npm run dev
# or
yarn
yarn dev

Deploy it to the cloud with Vercel (Documentation).