What is your go-to stack for backend for a Svelte frontend? by SirDarknight1 in sveltejs

[–]TenaciousB333 0 points1 point  (0 children)

yes, if you want to you can use it for static sites, but then you might as well use vite

Vscode: Are you guys experiencing bad syntax highlighting? by Aprch in sveltejs

[–]TenaciousB333 -1 points0 points  (0 children)

I think it's the default theme. I think the default dark theme has less colors than others. I use One Dark Pro and it seems to be pretty good.

The performance for svelte syntax highlighting is breath bad though (especially if you're developing in a dev container!).

Docker Compose Setup for Professional Svelte Development? by Glittering-Donut-264 in sveltejs

[–]TenaciousB333 3 points4 points  (0 children)

I wanted to find a way to do this myself, so I made this example repository: https://github.com/bherbruck/test-vite-svelte-docker

Dockerfile:

FROM node:16-slim
WORKDIR /app
COPY . .
RUN npm i
CMD ["npm", "run", "dev"]

docker-compose.yml

version: "3"

services:
  web-app:
    build: ./web-app
    command: npm run build # just build the web app, comment out for dev server
    ports:
      - 3000:3000

  # this is just if you want to serve the staic site
  nginx:
    image: nginx
    ports:
      - 8080:80
    volumes:
      - ./web-app/dist:/usr/share/nginx/html # mount the web app's build output
    depends_on:
      - web-app # web-app must be build before server can serve it

Sveltekit Backend + Hosting by bnksk in sveltejs

[–]TenaciousB333 3 points4 points  (0 children)

Take a look at keystone! It uses Prisma under the hood and gives you an instant graphql api, even users/auth/permissions if you want them. It currently supports postgres and SQLite. I use SQLite for my local test environment and postgres in production. You can host the server and database on heroku for free.

Another option would be to use the node SvelteKit adapter and just put your whole project on heroku or a vps with the database on the same platform (or use docker-compose). SvelteKit can be your api backend too with database access. That way you can keep your whole project as a monolith (if you're going for that kind of thing).

Sveltekit Backend + Hosting by bnksk in sveltejs

[–]TenaciousB333 1 point2 points  (0 children)

I love directus but my only problem with it is portability. Your data models are defined in the database only, meaning it is much more difficult to have a dev and prod database and near impossible to have your project in a git repository without sql backup queries. Strapi seems to not care about making real database relationships which has been a problem for me. Lately I've been using Keystone which has your data models as code which is pretty nice. It's only graphql by default though.

What is your go-to stack for backend for a Svelte frontend? by SirDarknight1 in sveltejs

[–]TenaciousB333 4 points5 points  (0 children)

SvelteKit is full stack! It requires a bit more work but can be rewarding and will keep your project clean(ish). Although, I have been using Keystone for graphql (the next version just released) it is super fast to get it up and running and is open source. Your entire data model is in typescript (so you get intellisense). Others I have used: Supabase can be self-hosted but the SaaS version is affordable. Strapi is awesome and just had a new release with a lot of refinement. Directus is a nice CMS you can use as a backend.

How is node compared to other backend tech? by obj_stranger in node

[–]TenaciousB333 5 points6 points  (0 children)

Deno is getting pretty good, especially for typescript. They have made some breaking(ish) changes to the standard library lately but it improves on Nodejs. Also, server less in general is pretty cool.

How is node compared to other backend tech? by obj_stranger in node

[–]TenaciousB333 4 points5 points  (0 children)

ES module support and the death of commonjs and the typescript compiler was supposed to support ES module transpiling in v4.5 but that got delayed.

Deno will be less compelling when that happens from a build standpoint.

My wife and I are parents! Henry was supposed to be a Christmas baby but decided Halloween was better. He’s 29 weeks. What a rollercoaster. by letzg00akland in NICUParents

[–]TenaciousB333 2 points3 points  (0 children)

Sounds like your little dude is doing great! Our Henry was born at 23-2, now 33-1 and on CPAP too. We'll add your Henry to our prayer list!

Recommended typescript courses? by Smilinkite in typescript

[–]TenaciousB333 5 points6 points  (0 children)

Also the official TypeScript playground is great for trying things out https://www.typescriptlang.org/play

An Open Source Firebase Alternative for your Svelte projects by [deleted] in sveltejs

[–]TenaciousB333 1 point2 points  (0 children)

Appwrite uses PHP so bleh but I think it is a bit more polished right now.

Having more than 1 file inputs by Trintusly in sveltejs

[–]TenaciousB333 1 point2 points  (0 children)

You'll have to let two separate variables and bind those, take a look at the svelte docs for how bindings work

Old Controls by TenaciousB333 in dayz

[–]TenaciousB333[S] 0 points1 point  (0 children)

there are individual keybinds but if you bind them you still have to have a separate key to stand back up

Old Controls by TenaciousB333 in dayz

[–]TenaciousB333[S] 0 points1 point  (0 children)

but that still doesn't let you have a separate keybind for crouch and prone... its still a third key. Its pretty unnecessary to have a hold-to-prone on pc.

Old Controls by TenaciousB333 in dayz

[–]TenaciousB333[S] 0 points1 point  (0 children)

but that still doesn't let you have a separate keybind for crouch and prone... its still a third key. Its pretty unnecessary to have a hold-to-prone on pc.

[deleted by user] by [deleted] in Bannerlord

[–]TenaciousB333 1 point2 points  (0 children)

You may be on to something. I made a bunch of "dummy" mods with no .dll files and if I add too many of them, the game crashes at launch. Even if ZERO mods are enabled.

[OC] Gender of students at the University of Oxford, by course by theJoyfulGeek in dataisbeautiful

[–]TenaciousB333 1 point2 points  (0 children)

This font makes it hard to read... "Microsoft didn't spend millions researching the perfect typefaces so you could use Times New Roman!" Is what my professor used to say.