Тёмный

Getting Started with the SAFE Stack Template | F# Web Development | StonkWatch Ep.6 

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

For Freelance F# Software Development and Consulting, visit www.bengobeil.com/
To get started:
safe-stack.github.io/docs/qui...
For the beta version of SAFE I mentioned in the video, use:
dotnet new -i SAFE.Template::3.0.0-beta001
Instead of:
dotnet new -i SAFE.Template
To build/run:
dotnet tool restore
dotnet run
Swap Feliz with Sutil:
1- Remove Index.fs file
2- Overwrite App.fs content with this file:
github.com/davedawkins/sutil-...
3- Add Sutil as a dependency in your Client project
In paket, from the root of the solution:
dotnet paket add -p src/Client/Client.fsproj Sutil
4- (optional) Remove Feliz/Fable dependencies from paket.references and paket.dependencies
(Keep Fable.Core, Fable.Mocha)
5- (optional) Remove "react" and "react-dom" from packages.json
Here is the source code for StonkWatch:
github.com/bengobeil/StonkWatch
Outro:
Artist: Lakey Inspired
Song: Warm Nights

Наука

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

 

2 мар 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@ycombine1053
@ycombine1053 3 года назад
Had a feeling this one was coming soon. Nice Can't wait to dig in to it later.
@TheJessejunior
@TheJessejunior 3 года назад
maaaannnn!!! you must be in 2050 with all that tecnology power hehehe.. thanks for this series!!
@akashmair8062
@akashmair8062 3 года назад
Sutil looks great! I loved Svelte so cant wait for this :D
@willsantos8012
@willsantos8012 3 года назад
Nice bro
@rafaelbrugnollo
@rafaelbrugnollo 3 года назад
Are you going to cover tests on this series as well? I'd love that.
@bengobeil933
@bengobeil933 3 года назад
Yes, at least the basics.
@Sovonex
@Sovonex 3 года назад
I entered dotnet new -i SAFE.Template::3.0.0-beta001 and dotnet new SAFE but after opening the solution in VSCode with Ionide, all I got was a "Project not restored" error. Do you have an idea what went wrong here?
@bengobeil933
@bengobeil933 3 года назад
First thing that comes to mind, try running dotnet run to see if building helps. And making sure you have dotnet 5.
@bengobeil933
@bengobeil933 3 года назад
Any logs would help, I don’t use Ionide so it’s kinda hard to tell
@Sovonex
@Sovonex 3 года назад
@@bengobeil933 Well, I should have read the Readme: ---- Before you run the project for the first time only you must install dotnet "local tools" with this command: dotnet tool restore To concurrently run the server and the client components in watch mode use the following command: dotnet run Then open localhost:8080 in your browser. ---- So after running 'dotnet tool restore', 'dotnet run' ran without problems.
@bengobeil933
@bengobeil933 3 года назад
I think the fake.cmd that existed before did this for you, but with the changing structure, it has to be done automatically. I will update the description. Thanks for letting me know.
@Sovonex
@Sovonex 3 года назад
@@bengobeil933 A step-by-step description with all commands (and where in the path to execute them) would be great, indeed! For adding Sutil, this is what I did: -- Remove Client/index.fs -- At the project's root: dotnet add package -i Sutil -- Add Sutil as a line to Client/paket.references (not sure if this is necessary) Then I get three errors complaining about 'Store', 'Html', and 'mountElement' not being defined. So I think Sutil has not been recognized.
@gajarubanjeyakumar7226
@gajarubanjeyakumar7226 3 года назад
I thought you were going to start the project on video.
@bengobeil933
@bengobeil933 3 года назад
It will be on video. Code is further a long than the videos, due to editing/pacing my video releases. As for doing the templating on video, at the time of recording, the next version of SAFE was not available, so I had to do some shenanigans to get it up and running, and I didn't feel it was relevant, since soon after that a new version was released by safe that is much easier to get started with. So next video, we will be starting from "dotnet new SAFE" + "git init", and I swapped Feliz with Sutil as explained in the last video. That is the starting point for the videos.
@gajarubanjeyakumar7226
@gajarubanjeyakumar7226 3 года назад
@@bengobeil933 nice thankyou!
Далее
How to Soldering wire in Factory ?
0:10
Просмотров 7 млн
ЗАБЫТЫЙ IPHONE 😳
0:31
Просмотров 20 тыс.