/deploy-to-netlify-astro-demo

Deploy to Netlify - Astro demo. The Astro demo is built using Enterspeed as a speed layer (high-performance data store).

Primary LanguageJavaScript

Astro demo

🔗 Live demo: https://enterspeed-astro.netlify.app/

Cloning this demo

To clone this project you can use Git Bash.

git clone https://github.com/enterspeedhq/deploy-to-netlify-astro-demo

...Or you can deploy directly to Netlify by clicking the button below.

Deploy to Netlify

Development

Once you've cloned this and installed dependencies with npm install (or pnpm install or yarn), start a development server.

npm run dev

Open up http://localhost:3000, and you should be ready to go!

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

ENTERSPEED_PRODUCTION_ENVIRONMENT_API_KEY

What you'll need

You will need to set up a free Enterspeed account. You can sign up here: https://app.enterspeed.com/signup

Once you have created your account and created a tenant, you need to configure your tenant by setting up:

  • Domains and hostnames
  • Environment and environment clients
  • Data sources

You can read more about it in our getting started guide: https://docs.enterspeed.com/getting-started

Ingesting dummy data

Once you have created a data source in Enterspeed, you can start ingesting data. This can be done using our API: https://docs.enterspeed.com/api#tag/Ingest

You can find the data used in the demo here: DEMO DATA

Example ingest

curl --location --request POST 'https://api.enterspeed.com/ingest/v2/UNIQUE-ID' \
--header 'X-Api-Key: [INSERT-YOUR-OWN-API-KEY]' \
--header 'Content-Type: application/json' \
--data-raw '{
  "type": "blog",
  "url": "/blog"
}'

Setting up your schemas in Enterspeed

The schemas used to transform the data in Enterspeed can be found here: DEMO DATA.