Using svelte (or sapper)

Hi, has anyone used svelte with adonis? in a single project folder? If yes, do you mind sharing your setup?

1 Like

I am currently doing the front-end with sapper now. It’s separated from adonis as backend, so it’s not in same folder

1 Like

What exactly are you looking for ? For a typical client-server setup - it will be like any other client-server API setup :slight_smile:

  1. a server folder that has AdonisJS
  2. a client folder that has Sapper
  3. use local proxy during development to direct API calls to server
  4. configure Nginx conf to proxy <domain-name>/api/* calls to server running on same machine
  5. deploy build folder to the public_html folder of Nginx
1 Like

Hey man, thanks for the reply, I’m looking for something similar to this setup https://dev.to/mzanggl/build-fullstack-javascript-apps-with-adonis-and-vue-3edc.

I’m new to this build step in front-end web dev, that’s why I can’t cook something up with rollup or even web pack.

  1. use local proxy during development to direct API calls to server

This is the part I couldn’t follow :sweat_smile:

I’m not using Nginx, just pm2 npm package.

We have Windows as server by the way.

Hello my fellow MH fan :laughing:

I’ll probably go this way for now.

Thanks!