An open API service indexing awesome lists of open source software.

https://github.com/iwilsonq/gatsby-starter-reasonml

Gatsby starter to create static sites using type-safe ReasonML
https://github.com/iwilsonq/gatsby-starter-reasonml

bucklescript gatsby react reasonml static-site

Last synced: about 2 months ago
JSON representation

Gatsby starter to create static sites using type-safe ReasonML

Awesome Lists containing this project

README

        



Gatsby



Gatsby ReasonML Starter

This starter for Gatsby is inspired by the default starter blog. Except this one supports ReasonML with its strongly typed, functional goodness.

## πŸš€ Quick start

1. **Install the Gatsby CLI.**

The Gatsby CLI helps you create new sites using Gatsby starters (like this one!)

```sh
# install the Gatsby CLI globally
npm install -g gatsby-cli
```

2. **Create a Gatsby site.**

Use the Gatsby CLI to create a new site, specifying the default starter.β—Š

```sh
# create a new Gatsby site using the ReasonML starter
gatsby new my-super-neat-reasonml-site https://github.com/iwilsonq/gatsby-starter-reasonml
```

3. **Start developing.**

Navigate into your new site’s directory and start it up.

```sh
cd my-super-neat-reasonml-site/
npm run dev:bsb
npm run dev:gatsby
```

4. **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](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql).\_

Open the the `my-super-neat-reasonml-site` directory (or whatever sensible name you gave it) in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time!

## 🧐 What's inside?

- Gatsby v2
- BuckleScript platform v4
- [bs-css](https://github.com/SentiaAnalytics/bs-css) (based on [emotion](https://emotion.sh))
- [bs-date-fns](https://github.com/SllyQ/bs-date-fns)