This starter for Gatsby is inspired by the default starter blog. Except this one supports ReasonML with its strongly typed, functional goodness.
-
Install the Gatsby CLI.
The Gatsby CLI helps you create new sites using Gatsby starters (like this one!)
# install the Gatsby CLI globally npm install -g gatsby-cli
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the default starter.◊
# create a new Gatsby site using the ReasonML starter gatsby new my-super-neat-reasonml-site https://github.com/iwilsonq/gatsby-starter-reasonml
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-super-neat-reasonml-site/ npm run dev:bsb npm run dev:gatsby
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!_Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial._Open the the
my-super-neat-reasonml-site
directory (or whatever sensible name you gave it) in your code editor of choice and editsrc/pages/index.js
. Save your changes and the browser will update in real time!
- Gatsby v2
- BuckleScript platform v4
- bs-css (based on emotion)
- bs-date-fns