Building REST API with ElysiaJS, Bun and SQLite - step-by-step tutorial with the source code

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Bun, ElysiaJS and SQLite to build REST API - let's look at how to do it in this video. Full step-by-step tutorial to follow along, I hope you will enjoy and learn something useful!
    Source code: github.com/and...
    If you liked this video and want to support my channel, please consider buying me a coffee ☕. Your contribution helps me create more content like this.
    You can donate at:
    👉 Ko-fi: ko-fi.com/andr...
    👉 Buy Me a Coffee: www.buymeacoff...
    I'm truly grateful for your support, and thank you for watching! 🙏

Комментарии • 33

  • @andrey.fadeev
    @andrey.fadeev  9 месяцев назад +3

    If you liked this video and want to support my channel, please consider buying me a coffee ☕. Your contribution helps me create more content like this.
    You can donate at:
    👉 Ko-fi: ko-fi.com/andreyfadeev
    👉 Buy Me a Coffee: www.buymeacoffee.com/andrey.fadeev
    Also please subscribe to my other resources:
    👉 Telegram channel: t.me/andreyfadeevchannel
    👉 Substack newsletter: andreyfadeev.substack.com/
    I'm truly grateful for your support, and thank you for watching! 🙏

  • @Ipadstands
    @Ipadstands 4 месяца назад +2

    I also use IntelliJ for JVM so I am glad to find this tutorial

  • @skryonline5825
    @skryonline5825 Месяц назад +1

    Андрей. ты красавчик. Продолжай в том же духе. Bun, Elysia, DDD, Clean Architecture самое то 🔥

  • @_YstNeris_
    @_YstNeris_ 4 месяца назад +1

    Отличный Английский и отличное видео!

  • @kolyunchikable
    @kolyunchikable 5 месяцев назад

    it was very usefull, thanks a lot!

  • @mateusavilaisidoro8305
    @mateusavilaisidoro8305 6 месяцев назад +1

    Which places you recomend to host these files? I started to learn to use elysia, but I didn't find any good content to talk about deployment.

    • @andrey.fadeev
      @andrey.fadeev  6 месяцев назад +1

      The most straightforward way is to just build a docker image and deploy it to any platform that supports containers, ECS, DO or even any VM with Docker/Docker Compose.
      I've also recently deployed a Hono application in the CloudFlare Workers/Pages, think with Hono it's a bit easier than ElysiaJS but for the later it's possible as well.
      I'll make video about my experience with Cloudflare wokers and Hono soon!

    • @mateusavilaisidoro8305
      @mateusavilaisidoro8305 6 месяцев назад

      Please do. Gold must be shared

    • @andrey.fadeev
      @andrey.fadeev  6 месяцев назад +2

      @@mateusavilaisidoro8305 will do probably in one of the next videos, if you'd like to try it yourself - this guide is really easy to follow and you will have a running app in cloudflare in couple mins: hono.dev/getting-started/cloudflare-workers

  • @TripleAEnter
    @TripleAEnter 4 месяца назад +1

    what extension are you using to show what is the variable type or when you pass parameters to a function the editor shows what is the parameter passed. what tool is it? i need it in VS code please. Thanks!

    • @andrey.fadeev
      @andrey.fadeev  4 месяца назад

      Hi, it's JB Idea Ultimate, no extra config, not a VSCode user, so not sure :(

  • @dannx3144
    @dannx3144 8 месяцев назад +1

    Hi this helped me so much!! Thank u! btw do u use any extension for it to show u the types and all of that, i mean "params:" "path:" "handler:" plsss

    • @andrey.fadeev
      @andrey.fadeev  8 месяцев назад +1

      Hi, thanks! No I don't use any custom extensions, that's why I get by default in IntelliJ Ultimate for Javascript/Typescript - but I'm afraid it's not available in the Community (free) version (but I'm not 100% sure)

    • @dannx3144
      @dannx3144 8 месяцев назад

      @@andrey.fadeev Oh i see, thanks!

  • @gabrielxavier5938
    @gabrielxavier5938 8 месяцев назад +2

    Thank you for the video my friend
    Which IDE are you using?

    • @andrey.fadeev
      @andrey.fadeev  8 месяцев назад +1

      Hi, thanks! It is IntelliJ idea, I have a video on the channel about the setup if you are interested, my it’s mainly focused on the clojure development

    • @gabrielxavier5938
      @gabrielxavier5938 8 месяцев назад +1

      Nice, I will take a look
      My main language today is clojure =D
      Will help me a lot @@andrey.fadeev

  • @woodman0602
    @woodman0602 5 месяцев назад +1

    I want to know how to config Bun and TypeScript in Intellij IDEA.Could you help me ? Thanks in advance!

    • @andrey.fadeev
      @andrey.fadeev  5 месяцев назад

      Hi, it just works out of the box, but I think the JS/TS plugin is only available in the Ultimate (paid) version :)

  • @WebGhost-wl5cj
    @WebGhost-wl5cj 5 месяцев назад

    You need to change the them of all of your system man it impact a lot on you videos quality. As these are not up to the mark if you could resolve these issue then you will get a lot more attention

  • @utubebroadcastme
    @utubebroadcastme 9 месяцев назад +1

    is bun multithreaded ??

    • @andrey.fadeev
      @andrey.fadeev  8 месяцев назад

      Hi, not in a way that you expect multithreading to be if you come from JVM for example, but same thing as in node with worker threads: nodejs.org/api/worker_threads.html, bun.sh/docs/api/workers (experimental still).

    • @tannercottle
      @tannercottle 5 месяцев назад

      it's still javascript which is single threaded. you can use worker threads or clustering for "multithreading"

  • @陸
    @陸 2 месяца назад

    What is your terminal

  • @CPPchannel
    @CPPchannel 5 месяцев назад

    what is bat .tool-versions?
    I cannot type it on my wsl.

    • @andrey.fadeev
      @andrey.fadeev  5 месяцев назад

      bat is the same as cat (check the content of a file) you can install that on Linux if you want, but that is not required really
      .tool-versions is a file to manage versions of different tools (config used by ASDF/Mise version managers)
      If you skip both and just go to Bun website and check how to install Bun the most straightforward way on linux (wsl)

    • @CPPchannel
      @CPPchannel 5 месяцев назад

      thank you@@andrey.fadeev

  • @tannercottle
    @tannercottle 5 месяцев назад +1

    This guy is using all the fancy dev tools, Warp terminal, WebStorm IDE, Bun/Elysia - you just need to switch to Arc Browser and your env will be complete

    • @andrey.fadeev
      @andrey.fadeev  5 месяцев назад +2

      XD, It's IntelliJ Idea actually, I've tried Arc actually and already deleted it, didn't get the hype. At work I'm doing "boring" things like Kafka, Terraform, JVM etc, so I think can have fun as a hobby :)

    • @tannercottle
      @tannercottle 5 месяцев назад

      @@andrey.fadeev ah yeah, IntelliJ and Webstorm are almost one in the same 😅 and that’s interesting about Arc browser - I can’t go back to regular browsers now because Arc makes it so easy for me to organize my 3051 tabs 😂