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: 8 days 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-09-24T04:55:46.000Z (3 months ago)
- Last Synced: 2024-12-14T08:01:07.364Z (8 days ago)
- Topics: fable, fsharp, suave
- Language: F#
- Homepage: https://safebookstore.azurewebsites.net/
- Size: 16.5 MB
- Stars: 494
- Watchers: 26
- Forks: 147
- Open Issues: 10
-
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/)