Тёмный

How To Create Full Stack Web Applications In F# | SAFE Stack Overview 

Ben Gobeil
Подписаться 2,2 тыс.
Просмотров 4,6 тыс.
50% 1

For Freelance F# Software Development and Consulting, visit www.bengobeil.com/
For more information on the SAFE Stack and how to get started. visit safe-stack.github.io/
Backend choices mentioned:
ASP.NET Core (dotnet.microsoft.com/learn/as...)
Giraffe (giraffe.wiki/)
Suave (suave.io/)
Saturn (saturnframework.org/)
Falco (www.falcoframework.com/)
Front-end choices mentioned:
Fable (fable.io/)
Fable.React (github.com/fable-compiler/fab...)
Feliz (zaid-ajaj.github.io/Feliz/)
Bolero (fsbolero.io/)
Elmish (elmish.github.io/elmish/)
Styling choices mentioned:
Bulma (bulma.io/)
Fulma (fulma.github.io/Fulma/)
Timestamps:
0:00 Intro
1:21 What is the SAFE Stack
4:34 Infrastructure choices
5:40 Back-end choices
10:17 Front-end choices
16:25 Closing thoughts
Outro:
Artist: Lakey Inspired
Song: Warm Nights

Наука

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@bengobeil933
@bengobeil933 3 года назад
This is a high level introduction and I don't go into much depth for now on how to get started. I am only presenting the technology options to write web applications. In subsequent videos, we will actually write a full-stack application. More on that in the next video. Also, this is not an exhaustive list of options. For example, I am looking at other libraries like Sutil for the front-end that look really cool. Hopefully you've enjoyed and stay tuned for more!
@akashmair8062
@akashmair8062 3 года назад
This series is gonna be great! Super excited dude :D
@PaulSebastianM
@PaulSebastianM 2 года назад
Thanks for taking the time to clear up so much confusion.
@MuhammadAli-df4ed
@MuhammadAli-df4ed 3 года назад
I am waiting eagerly for this tutorial
@jadawo
@jadawo 3 года назад
This channel is the best content I have watched all year! Keep up the great work. Do you have any plans to make a video on Elmish or Feliz? Sutil is cool but seems pretty raw as of now.
@emmanueladebiyi2109
@emmanueladebiyi2109 4 месяца назад
Lovely intro, thanks!
@kylegivler8372
@kylegivler8372 10 месяцев назад
Appreciate the F# videos.
@millch2k8
@millch2k8 3 года назад
Really impressed with the channel content and has definitely inspired me to try out Giraffe (or at least a simple HttpListener within F# at least!)
@tiraelsedai
@tiraelsedai 3 года назад
Hi Ben! Enjoying the videos, let me to be a bit pedantic about ASP.NET Core: It's more a framework than a library, and it's not counter-idiomatic to F#, it just can use some sugar and love like MVC on top of ASP.NET Core for OOP, that's what Giraffe and other stuff is.
@iagoh.moreira5253
@iagoh.moreira5253 3 года назад
I had some experience with SAFE in the past weeks and I find it amazing! The only problem is that the docs from SAFE and SATURN assumes that the user have a lot of knowledge in FP and in .NET...
@bengobeil933
@bengobeil933 3 года назад
I feel that. I am getting a lot of feedback that my videos and documentation in the community assume .NET knowledge. I will probably have to do a video on it at some point.
@LooserName
@LooserName 3 года назад
Awesome video! And Feliz is also Happy in portuguese :)
@PaulSebastianM
@PaulSebastianM 2 года назад
11:15 "greatness" 😹
@KanagawaMarcos
@KanagawaMarcos 3 года назад
We're starting to introduce F# as our primary language for the company I work. Things we constantly find ourselves lost in are database migrations and authentication. (We found multiple aways to do it). Do you plan on tackling any of those subjects later? btw, awesome content man!
@bengobeil933
@bengobeil933 3 года назад
Hi Marcos, glad to see F# being adopted. For database migrations, it can be all over the place. I have not seen a clear winner for F# in this regard, I find DbUp .NET (dbup.readthedocs.io/en/latest/) to be simple and effective. Any C# based solution will work as well. As for authentication, there are multiple options: 1- Giraffe, Falco and Saturn all have there way to do authentication, that is based on ASP.NET Core. Check out respective documentations. 2- If you are using fable remoting, you can check out this documentation here: zaid-ajaj.github.io/Fable.Remoting/src/modeling-authentication.html It's a strategy to model authentication into the RPC calls. 3- Use straight-up ASP.NET Core stuff for authentication, should be well documented with C#, just port examples to F#. Hope this helps!
@EhdrianEh
@EhdrianEh 2 года назад
"Normal Windows server"... I don't know anybody who uses a Windows server. I've seen some MSSQL instances (I suppose these are on Windows), but that's usually in a financial or lawyer's office when they are using some older tech that needs to connect their proprietary software with their print network. Maybe in government?
@guillemgarcia3630
@guillemgarcia3630 3 года назад
Thank you very much for taking the time to make this videos, it's truly helping me to refactor a messy nodejs app. About that, do you think it's a valid approach to progressively replace a Nodejs app with Fable code? The goal is to eventually move to full f# with dotnet.
@bengobeil933
@bengobeil933 3 года назад
I would build a giraffe or saturn backend to rewrite your nodeJS instead of using fable if your goal is to move to dotnet. Fable should be used for your front-end in F#.
@zeeshanmh215
@zeeshanmh215 3 года назад
I am a JS developer and reently heard of F#. Is there any resources that i can learn about F# and use it in my projects that uses JavaScript without depending on dot-net ?
@bengobeil933
@bengobeil933 3 года назад
Hi Mohammed, F# is a compiled language that needs the dotnet SDK to compile. Unless you are using Fable (which generates JS from F# code), you will need a dotnet runtime to execute your assemblies/.exes. In the case of Fable, you can generate JS and integrate it in your project, but you will still need some level of involvement at the dotnet level. Check out my Getting Started video to download the SDK (.NET 5). Then check out fable.io/blog/Announcing-Nagareyama-4.html to install fable as a dotnet tool. Haven’t really plunged deep into this but this is where I would start.
@zeeshanmh215
@zeeshanmh215 3 года назад
@@bengobeil933 Thanks Ben, I will check that out
@zeeshanmh215
@zeeshanmh215 3 года назад
@@bengobeil933 But should I learn C# in order to use F#?
@bengobeil933
@bengobeil933 3 года назад
No need to learn C# to use F#
@sgnsajgon
@sgnsajgon 3 года назад
Hello Ben, I have started learning SAFE Stack. I have experience with JS and React, Redux, and also with Elm, and I have a question. In SAFE Stack, is it possible to use MDU (Elmish) together with React (Fable.React)? MDU is architectural pattern from Elm, which have gained popularity in JS world with React and Redux. React is basically responsible for View, and Redux is responsible for Model and Updater. So React is responsible for rendering HTML, and Redux is responsible for state management. React has some build-in features of basic state management and can be used without Redux or together with other state management library like MobX. So, from your description, I guess that Elmish implements MDU but has it's own engine responsible for rendering actual HTML (like Elm), but I would like to use Elmish MDU with React and React.DOM because I have experience with it and its really powerful, and as you said - easier to sell. As a side note - I'm eager to learn SAFE stack and learn how it can solve certain problems. I think Redux is a great library and did a good job in promoting FP in JS world, but it has some limitations, i.e. error handling, reducers (updaters) cannot be monadic functions so there is not straight way to propagate errors and failures to Middleware. Besides JS and Typescript do not encourage FP practices, so there are a situation when Redux is not used as intended, i.e. tendency to have anemic reducers or hiding side effects outside middlewares.
@bengobeil933
@bengobeil933 3 года назад
For web Elmish projects (MVU), you can do it with Fable.React, Feliz (built on top of Fable.React), Bolero. Many opportunities.
Далее
Best Resources To Learn F# In 2021
12:34
Просмотров 7 тыс.
What Tech Stack Does Big Tech Use?
0:58
Просмотров 18 тыс.
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 20 тыс.
НЕ БЕРУ APPLE VISION PRO!
0:37
Просмотров 372 тыс.