Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SAFE-Stack/SAFE-BookStore
Working sample of a SAFE-Stack project with hot reloading
https://github.com/SAFE-Stack/SAFE-BookStore
fable fsharp suave
Last synced: 3 months ago
JSON representation
Working sample of a SAFE-Stack project with hot reloading
- Host: GitHub
- URL: https://github.com/SAFE-Stack/SAFE-BookStore
- Owner: SAFE-Stack
- License: unlicense
- Created: 2017-01-19T15:12:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T11:37:21.000Z (7 months ago)
- Last Synced: 2024-04-30T18:30:51.255Z (6 months ago)
- Topics: fable, fsharp, suave
- Language: F#
- Homepage: https://safebookstore.azurewebsites.net/
- Size: 16.3 MB
- Stars: 489
- Watchers: 28
- Forks: 147
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Introducing SAFE Bookstore
[Deployed Demo](https://safebookstore.azurewebsites.net/)
## Demo
You'll need to install the following pre-requisites in order to build SAFE applications
## Install pre-requisites
You'll need to install the following pre-requisites in order to build SAFE applications
* The [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)
* [node.js](https://nodejs.org/) (v18.x or v20.x)
* [npm](https://www.npmjs.com/) (v9.x or v10.x)
* [docker](https://www.docker.com/products/docker-desktop/)## Getting started
Before you run the project **for the first time only** you must install dotnet "local tools" with this command:
```bash
dotnet tool restore
```To concurrently run the server and the client components in watch mode use the following command:
```bash
dotnet run
```This will also spin up a local docker container with Azurite storage emulator which is used to save the wishlist data.
The build project in root directory contains a couple of different build targets. You can specify them after `--` (target name is case-insensitive).
Finally, there are `Bundle` and `Azure` targets that you can use to package your app and deploy to Azure, respectively:
```bash
dotnet run -- Bundle
dotnet run -- Azure
```## SAFE Stack Documentation
If you want to know more about the full Azure Stack and all of it's components (including Azure) visit the official [SAFE documentation](https://safe-stack.github.io/docs/).
You will find more documentation about the used F# components at the following places:
* [Saturn](https://saturnframework.org/)
* [Fable](https://fable.io/docs/)
* [Elmish](https://elmish.github.io/elmish/)