-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add lots of recipes #154
Comments
Here's a list of items I'd add / change. building and hosting• How do I handle application versioning - As we remove support for RELEASE_NOTES and Version.fs with FAKE support for parsing, we need to explain how this can be done package management• How do I use Yarn instead of NPM? client / server communication• "How do I add support for Fable" - what do you mean? dev & test• How do I add support for remote container extension in VS Code? fable• How do I add support for fable reaction ? ui• How do I start with a Bulma template? - here we can create sample repos with all v1 layout options Two more sections I'd add: server• How do I use Giraffe instead of Saturn? - we have users that want bare Giraffe other platforms• How do I share code between Web and Console application? - I can add that section given it's my actual commercial use case. In future we could expand it to Mobile (Xamarin) / Electron / etc. |
All added :-) |
I've moved a couple items in the list under proper group |
I'd very much love to see one on how to authenticate with Azure AD, preferably that the user is member of a specific group. |
I'd like to see a recipe on WebSockets and a recipe on integrating Akka.NET / Akkling.
This could possibly re-use the WebSockets with SAFE Stack blog post and the corresponding example code (safe-sockets).
SAFE-Chat is a nice demo app that leverages Akka and WebSockets, but it is older and uses Suave for the Server. It's not the same as a "How To Start" recipe. |
I recently added Tailwind to a SAFE template to try them both out. I'd be happy to create a recipe for that once the new minimal template is out and I have a recipe format to follow. |
One misconception I had coming into SAFE was thinking that it was a purpose built stack, I knew it was made out of a number of frameworks / libraries, but I didn't quite realise how much you could just play around with it from there. It's a starting point more than anything. I think the way it is moving forward makes total sense, having a minimal template and a full template. It reminds me a little bit of hedycode, if you start using the full template there's too much going on to remember the important bits. Where as if you start with the minimal template and create recipes to help others add more content to their repo, they are then learning as they progress and realise why the full template does the things that it does. You probably have these thoughts as well, but it won't hurt to hear them repeated. I think it should be very obvious to anyone reading the recipes that they are community driven, that they survive and grow based on community input. A very useful one is to make sure there is an edit link on the page for the reader to make changes, especially as recipes age and packages are updated with breaking changes. It would be amazing to be able to see the history of the recipe based on the version of package being used, but I feel that is a whole other beast. A problem to solve if recipes are a success, rather than something to do upfront. |
We're working on a recipe template and are doing a few sample recipes to get it going. I'm hoping to start rolling them out next week :-) |
Recipe suggestion: How to serve up a file (created on the server) to a user. Example workflow from the user's point of view:
|
How do I add application configuration ? Following Don Syme's recent talk about memetic independence, I think it is an important area to cover for people who come from non .Net background. A non-C# version of an application configuration walk through without use of Visual Studio and without assuming any prior .Net familiarity and in a location that is readily accessible as the Safe stack docs will be useful. |
Question to that recipe "How do I share code between Web and Console applications?". |
I believe this might have been my idea. We do something like that at work - there's an agent running on a device that acts as 'backend' for the Fable app, so the same concepts of sharing code apply. Probably an edge case though, so might not be interesting for wider audience. |
This could also be a use case for my work. Doing similar things, still using c# though but undergoing a transformation to F# now. Thanks to @isaacabraham |
Sharing code with web and console applications is also something I've done at work with Elmish Bridge DotnetClient (as well as Remoting) for managing CAD projects. There's a background service (BGService) that runs on users' computers and sends/receives messages from the server, which broadcasts/receives messages from the Feliz Client and other BGService instances. What would you think of naming it "How do I share code between Web and Dotnet client applications" (Or "... Console/Desktop applications")? A different project that never got off the ground had an Avalonia.FuncUI.Elmish component, but any dotnet desktop app that needs to share code with the server could probably benefit from the same recipe. |
I realized the difficulty was the unsafetiness of JSON. I ended up going with Bare serialization for client-server messages. It has a fable compatible nuget package with code generator. https://www.nuget.org/packages/bare-cli |
I would love to see a recipe for adding jwt authentication to a safe stack app :) |
This is a tentative list of "recipes" or "how-to" guides that the docs should offer. Hopefully each should be relatively small and quick to author!
Upgrading from SAFE v1
Hosting
Build
Package Management
Client / server communication
Developing and Testing
Fable
UI
Server
Other Platforms
WebPack
Other
Security
The text was updated successfully, but these errors were encountered: