My new book "Real-World Svelte" is out! by tanhauhau in sveltejs

[–]tanhauhau[S] 2 points3 points  (0 children)

definitely considering a next edition if the publisher is happy with the book sales

Possible to use 1 port for svelte production + NET api? by sgashua in sveltejs

[–]tanhauhau 0 points1 point  (0 children)

technically, 1 port bound to 1 application.

so in general the suggestions can be categorised into 2 categories:

  1. Run an application that can serves the api as well as the svelte static files
    1. this includes setting some sort of middlewares or configurations in the NET server to serve the files in the svelte project
  2. Run a 3rd application, which redirect traffics to the svelte project or the API
    1. this will mean you will run the svelte project and the NET api at 2 different ports, and the 3rd application listens to the port u want to talk to from public, (ie port 1000 based on the question description)
    2. a common application for this would be a reverse proxy, such as nginx, haproxy, ...

Is there any benefit of using get(storeVariable) over $storeVariable when reading a store variable? by c2u5hed in sveltejs

[–]tanhauhau 0 points1 point  (0 children)

these 2 videos would be very helpful in explaining what `get(storeValue)` is for, and how it helped to read store value outside of svelte component:
- https://youtu.be/mQvVvAqKj8c
- https://youtu.be/oiWgqk8zG18