This application is based on SAFE Stack. It was created using the dotnet SAFE Template. If you want to learn more about the template why not start with the quick start guide?
You'll need to install the following pre-requisites in order to build SAFE applications
- The .NET Core SDK 3.1 or higher.
- npm package manager.
- Node LTS.
Start the server:
cd src\Server\
dotnet run
Start the client:
dotnet fable watch src\Client --run webpack-dev-server
Open a browser to http://localhost:8080
to view the site.
- Bundle the client application in the root folder. This will build the client application according to the specs in the
webpack.config.js
, using the following commands:
# make sure that the client is build
dotnet fable src/Client/Client.fsproj
# bundles the client
npm run build
- Build the server application using the following commands:
cd src/Server
dotnet publish -c release -o ../../deploy/Server
- Copy the data folder to the root of application folder
The result is the following folder structure:
deploy/
Client/
public/
Server/
For IIS to run the application you need to install the ASP.NET CORE hosting bundle
If you want to know more about the full Azure Stack and all of its components (including Azure) visit the official SAFE documentation.
You will find more documentation about the used F# components at the following places:
- Need to nuget the libs in the libs folder, i.e.
Informedica.PICE.Lib
- Maybe make the data folder relative to the deploy folder (currently in the root of the repository)