The programming language for writing single page applications.
Exploring & Learning Crystal Language with code examples and augment the documentation.
1. Installation
On MacOS - use:
$ brew tap acciaiodigitale/homebrew-mint-lang
$ brew install mint-lang
for other OSes see: https://www.mint-lang.com/install
2. First Tutorial]
3. Exploring Mint
Note: * Mint uses React’s file naming conventions (capitalize component name) * Mint basically uses React’s html conventions
3.1. Quick Start (Hello)
$ mint-lang init hello
$ cd hello
$ mint-lang start
# Now open: *http://localhost:3000*
# Hopefully you see: *Hello Mint!*
# If you are happy with the project build for deploy with:
$ mint-lang build
3.2. State and Events
3.3. Components
3.4. Store
3.5. Bulma - external css
3.6. Routes
3.7. Properties
3.8. Add External JS
3.9. Mint Organized
3.10. Computed Properties
Bulma without external JS Code
4. Deploy Mint
5. Mint CLI Commands
for all the cli commands do:
$ mint-lang --help
5.1. Build Mint Project for Mint-Docker
How do I build a .mint file with mint-docker?
$ docker-compose run --rm mint mint build
6. Resources
-
Mint Git Repo - https://github.com/mint-lang/mint
-
Mint Lang Docs - https://www.mint-lang.com/guide
-
Mint Lang API (Standard Library) - https://www.mint-lang.com/api
-
Mint Lang Gitter - https://gitter.im/mint-lang/Lobby
-
Mint Realworld Code - https://github.com/mint-lang/mint-realworld
7. Generating these Docs
$ asciidoctor -D docs/mint code/mint/adoc/*