Questions tagged [safe-stack]

The SAFE stack is an open-source, free, flexible end-to-end, functional-first stack for cloud-ready web applications that emphasizes type-safe programming.

The SAFE stack allows you to develop web applications almost entirely in F#, without needing to compromise and shoehorn your codebase into an object-oriented framework or library, and without needing you to be an expert in CSS or HTML to create compelling, rich client-side web applications.

The SAFE stack is made up of four components:

  • A web server running on .NET Core for hosting back-end services in F#
  • A hosting platform that provides simple, scalable deployment models plus associated platform services for application developers
  • A mechanism to run F# in the web browser for client-side delivery of F#
  • An F# programming model for client-side user interfaces

More information is available at:

SAFE stack

Documentation

Introducing the SAFE stack

22 questions
1
vote
0 answers

How do I use the "onunload" event to send a message to the server in SAFE Stack?

I've got an application built using the SAFE stack where active clients have corresponding objects on the Server side. When a user closes their browser window, I would like a message to be sent to the server to delete that object. I'm trying to use…
0
votes
0 answers

How to allow redirects blocked by the CORS policy in ASP.NET Core 7?

I am trying to figure out how to authenticate a SAFE Stack app using Azure AD. The problem is that the challenge request does a redirect to the Azure AD login page, which gets blocked by the cors policy. Right now, I am not even trying to do that,…
Marko Grdinić
  • 3,798
  • 3
  • 18
  • 21
0
votes
1 answer

How to modify the name of the webapp

The result of dotnet run Azure is the error "Website with given name SAFE already exists." I changed all strings in farmer-deploy.json containing "SAFE" to "SAFExyz" and saved my changes. I then rebuilt and then ran dotnet run Azure again. This…
LearnerX
  • 137
  • 2
  • 8
0
votes
1 answer

How do I write encoders/decoders for Thoth.Json in the SAFE Stack?

I'm building an application using the SAFE Stack and I have a System.Uri in my model. When I run my code I get an error in the console "Cannot generate autoencoder for System.Uri..." My googling has got me to here so far module CustomEncoders open…
David Hayes
  • 7,402
  • 14
  • 50
  • 62
0
votes
1 answer

Fable.Reactstrap not defined on Client fsproj SATE-stack

I'm trying to use Fable.Reactstrap on Client project from SAFE.Template. I've added Fable.Reactstrap to Nuget, Paket, and NPM but still receive error FSHARP: The namespace 'Reactstrap' is not defined when executing dotnet run. It's an error from…
Riza
  • 1,144
  • 8
  • 19
0
votes
2 answers

F# Feliz.Bulma dropdown/combobox

My question is very simple - how to create combobox (dropdown) in SAFE project (using Feliz.Bulma) and populate it programmatically. In the docs there is no such component. This is the only example (Fulma) I found and can not incorporate it in my…
Michael Snytko
  • 327
  • 3
  • 13
0
votes
1 answer

Displaying a string representing HMTL as actual HTML, not string content in F#'s Fable application

As the title suggests, I'd like to display a string representing some valid HTML as the actual elements the string represents, not to output the string content. Example: Given the string This is a string representing HTML, I'd like…
user2369099
1
2