s952163 / templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elmish templates

Templates

This repository contains the following templates:

Name Short Name Description
Fable.Template.Elmish.React fable-elmish-react This template will help set up a minimal elmish application to start a new project
Fable.Template.Elmish.React.Demo fable-elmish-react-demo This template contains a demo apps (usefull to test or explain elmish)

How to use ?

⚠️ You can't use . or - in your project name. We are already tracking this issue and wait for a fix in dotnet template ⚠️

# First we install the template using the is Name
# For dotnet 1.x
dotnet new -i Fable.Template.Elmish.React::*
# For dotnet 2.x
dotnet new -i Fable.Template.Elmish.React

# Create a project called "awesome" using the Short Name of the template
# If you want to use yarn instead of npm add --yarn at the end of the command
dotnet new fable-elmish-react -n awesome

# Move into your new project directory
cd awesome

If you choose to use yarn

# Install yarn dependencies
yarn install
# Move into the source directory
cd src
# Install dotnet dependencies
dotnet restore
# Start Fable server and Webpack dev server
dotnet fable yarn-start
# In your browser, open: http://localhost:8080/

If you choose to use npm

# Install npm dependencies
npm install
# Move into the source directory
cd src
# Install dotnet dependencies
dotnet restore
# Start Fable server and Webpack dev server
dotnet fable npm-start
# In your browser, open: http://localhost:8080/

About

License:Other


Languages

Language:F# 76.5%Language:JavaScript 13.1%Language:HTML 5.4%Language:CSS 3.0%Language:Shell 1.6%Language:Batchfile 0.5%