website/docs/integrations/netlify.md
Netlify is an application deployment platform.
Netlify is a great choice for deploying client-side web apps that use Electric.
[!Tip] Need context? See the Deployment guide for more details.
Create your app, connect it to Netlify and deploy via git push.
[!Warning] You need Electric (and Postgres) running somewhere else The easiest way is to use the Electric Cloud. Or see the Deployment guide.
Copy the URL to your Electric instance and use it when syncing data into your app. E.g.: by setting an environment variable and using it in your code:
const ELECTRIC_URL = process.env.ELECTRIC_URL
const stream = new ShapeStream({
url: `${ELECTRIC_URL}/v1/shape`,
params: {
table: 'items',
},
})
See the Client docs for more information.
Deploy our standalone-basic-example app using the form below:
<DeployToNetlifyForm repo="electric-sql/standalone-basic-example" />