This is my entry for the F# advent calendar 2022.
- dotnet SDK 6.0.1 or higher
- node.js 16
- An F# editor like Visual Studio, Visual Studio Code with Ionide or JetBrains Rider
- Install dependencies:
npm install
- Start the compiler in watch mode and a development server:
npm start
- After the first compilation is finished, in your browser open: http://localhost:8080/
Any modification you do to the F# code will be reflected in the web page after saving.
Note: check the "scripts" section in
package.json
to see the commands triggered by the steps above.
Run the following command to compile and bundle up all your F# code into one Javascript file: npm run build
. The compiled output ends up in the public
folder under the name bundle.js
.