Skip to content

rfrerebe/interop-fableconf2019

 
 

Repository files navigation

Fable Getting Started - Interop edition

This is the simplest Fable application you can make: it is a frontend web application with an empty page that writes Hello from Fable to the console.

Requirements

Installation

To compile the project, run the following commands

npm install
npm run build

npm install will install dependencies from npm which is the Node.js equivalent of dotnet's Nuget registry. These dependencies include the Fable compiler itself as it is distributed to npm to make compilation worflow as simple as possible.

npm run build will then start building the project by invoking webpack which is responsible of orchestrating the compilation process.

After npm run build finished running, the generated javascript will be bundled in a single file called bundle.js located in the public directory along with the index.html page that references that script file.

Development mode

While developing the application, you don't want to recompile the application every time you make a change. Instead of that, you can start the compilation process in development mode which will watch changes you make in the file and re-compile automatically really fast:

npm install
npm start

If you already ran npm install then you don't need to run it again. npm start will start the developement mode by invoking webpack-dev-server: the webpack development server that starts a lightweight local server at http://localhost:8080 from which the server will serve the client application

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.4%
  • HTML 27.6%
  • F# 3.0%