DEV Community

Cover image for VERCEL and the Internet Computer
Roland
Roland

Posted on

VERCEL and the Internet Computer

Hello ๐Ÿ‘‹ Dev.to community!

I'm excited to share with you my latest piece on VERCEL and the Internet Computer. This article shows how a SvelteKit application hosted on VERCEL can access data from the Internet Computer using Server-Side Rendering (SSR).

Engage with Me

I'm looking forward to hearing your thoughts, feedback, or questions. Let's start a conversation in the comments below! Your insights make the dev community a richer place.

Read the Full Article Here:

Get the Github Repository Here:

VERCEL and the Internet Computer

For more insights, visit our article on icAcademy.

This is a demo project to demonstrate how a Web2 frontend hosted on VERCEL can access a Motoko backend canister on the Internet Computer using Server Side Rendering (SSR).

In this example the frontend is a SvelteKit application and the backend is a Motoko canister running in a dedicated canister on the Internet Computer. The frontend calls a Body Mass Index (BMI) calculation function in a dedicated canister and displays the result.

This example shows that a frontend that is NOT hosted on the Internet Computer can access a backend on the Internet Computer using Server Side Rendering (SSR).

How to use this example

Get the code

# create a base folder
mkdir myBmi && cd myBmi

# copy project files
npx degit https://github.com/samlinux-development/ic-vercel-sveltekit-2

# install dependencies
npm install
Enter fullscreen mode Exit fullscreen mode

This project uses a special canister forโ€ฆ

Closing

Thank you for your time and interest. I hope this article brings value to your day and projects. Stay tuned for more content like this, and happy coding!

Top comments (0)