Partas.Solid.Start.Templates
0.1.1
dotnet new install Partas.Solid.Start.Templates::0.1.1
Partas.SolidStart
A set of templates to quickly get a SolidStart application rolling in F# Fable.
This is a great way to just get started with Partas.Solid and Solid-js and explore the SolidStart meta frame-work routing system et al.
To deploy this with a dotnet server, you would have to have more intimate knowledge of configuring SolidStart to plugin your own backend. To take the most advantage of SolidStart, you would likely move in the direction of having the solid-start backend communicate with your own backend.
Uses the FAKE build process from the SAFE stack.
Template Name | Included libraries | Description |
---|---|---|
bare-devtools | solid-devtools | Barebones template with devtools pre-setup |
tailwind-devtools | tailwind v4; solid-devtools | Barebones template with tailwindcss v4 and devtools |
solidbase-devtools | solidbase; solid-devtools | SolidBase static website framework with devtools |
mdx-devtools | solid-mdx; solid-devtools | MDX based site template with devtools |
Solid-DevTools are a real boon that are automatically removed in production. You can disable them quite simply by removing the following from
entry-client.jsx
:import 'solid-devtools'; attachDevtoolsOverlay();
Setup
- Download the template via dotnet:
dotnet new install Partas.Solid.Start.Templates
- Create a template using one of the provided options.
- If you setup as a solution, you can delete the provided
Application.sln
, or copy some of the settings for organisation (it puts the solidstart related files in a solution folder). - Run the setup command from the root:
dotnet run setup
This will:
- Install Fable tooling
- Install Dotnet Packages
- Install NPM Packages
- Run the development server
Installing the NPM Packages will take a while on the first run, be patient!
Deployment
There is no premade setup for this, as there is just so many variables, and these templates would serve better as a member of a more complete, opinionated template. You can use the FAKE build system by modifying the Build.fs
file to suit your needs.
Alternatively, you can just commit all .fs.jsx
created in the dev process to a branch, and then deploy using Vercel or Netlify or whatever else is supported by Solid-Start from there.
This is in the scenario that you are not deploying with a dotnet server.
Commands
- Setup
See above.
dotnet run setup
- Dev
Starts the development server.
dotnet run dev
- Restore
Installs any missing dotnet/npm dependencies.
dotnet run restore
-
net9.0
- FSharp.Core (>= 9.0.300)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.