Spin generator for Dream applications.
opam spin new https://github.com/tmattio/spin-dream.git
You can see a generated project with the minimal setup and usage instructions
in the example/
directory.
- Live reloading on file system change with
dream-livereload
- A project structure with a clear separation of concerns
lib/<project>
contains the business logic and storage accesslib/<project>_web
contains the API definitionlib/<project>_app
contains an (optional) JavaScript application sent to clients
- Welcome page with a portal to Dream's ecosystem
- Unit test suite with Alcotest
- CLI to configure server settings at runtime with
dream-cli
- (optional) Docker configuration files ready for deployment.
- (optional) TailwindCSS integrated with Dune
- (optional) Inter fonts configured with TailwindCSS
- (optional) Turbolink setup
- The optional TailwindCSS setup requires NodeJS 12.13 or higher. If your system uses a previous version of NodeJS, we recommend using
nvm
to install a newer version.# Install NVM curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash # Reload bash source ~/.bashrc # Install an NPM version, 14 is the latest LTS nvm install 14 # Use the version in your current prompt nvm use 14
- Add Caqti examples
- Skip crunch in development
- Welcome page design borrowed from TailwindCSS playground
- Turbolink setup borrowed from Haskell's IHP
- Directory structure heavily inspired by Elixir's Phoenix