Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Builder.io example with Solid

See App.jsx for usage

Try it out

  1. Install dependencies
npm install # or pnpm install or yarn install
  1. Run the dev server
npm run dev
  1. Create an account with Builder.io if you don't already.

  2. Log into your account at builder.io/login

  3. Go to the models page (https://builder.io/models) and choose the "page" model and change the "editing url" to http://localhost:3000 to use your local dev server.

Where to add preview URL

  1. Then go to the account page (https://builder.io/account) and copy your public API key, and paste it into the apiKey variable in the App.jsx file.

  2. Now, go to the content page (https://builder.io/content) and choose "+ new" in the top right and create a new page with URL /

You should now be able to use the Builder drag and drop editor in your solidjs app. Be sure to always have the <Content> component be present anywhere

Builder editing Gif

Learn more about previewing and editing in Builder.io

Learn more on the Solid Website and come chat with us on our Discord

Available Scripts

In the project directory, you can run:

npm dev or npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.

npm run build

Builds the app for production to the dist folder.
It correctly bundles Solid in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deployment

You can deploy the dist folder to any static host provider (netlify, surge, now, etc.)