jasiozet / elmish-feliz-daisyui-template

Elmish, Feliz, DaisyUI, Vite project starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fable Elmish Feliz Feliz.DaisyUI Vite App

This is a template Fable project for me which uses Vite 3 so you can easily get started and add your own code progressively.

Requirements

Building and running the app

  • Install dependencies: npm install
  • Run the app: npm start
  • Build the app for deployment: npm run build

Any modification you do to the F# code will be reflected in the web page after saving.

Elmish book

Make sure to read the excellent Elmish Book by Zaid Ajaj. I would like to personally thank Zaid for everything he has done for F# Community.

Project structure

.
├── Nuget.Config
├── README.md
├── package-lock.json
├── package.json - JS dependencies
├── build - Ready to deploy files when you run `npm run build`
├── dist - Compiled JS from F# file
├── index.html - Main HTML file
├── vite.config.js - config for vite
├── tailwind.config.js - config for tailwind
├── public
│   ├── favicon.ico - Fable favicon
└── src
    ├── Main.fs - F# kickstarting elmish
    ├── Extensions.fs - F# helper functions from Feliz template
    ├── App.fs - F# sample Elmish with commands
    └── App.fsproj - F# project

What's included:

Commands for that:

  • femto install Fable.Elmish
  • femto install Fable.Elmish.React
  • femto install Feliz
  • femto install Feliz.DaisyUI
  • npm i -D vite

About

Elmish, Feliz, DaisyUI, Vite project starter


Languages

Language:F# 73.2%Language:HTML 14.2%Language:JavaScript 11.0%Language:CSS 1.6%