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
- Host: GitHub
- URL: https://github.com/iwilsonq/gatsby-starter-reasonml
- Owner: iwilsonq
- License: mit
- Created: 2018-10-22T08:55:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-11T19:46:08.000Z (over 2 years ago)
- Last Synced: 2024-11-14T16:44:39.947Z (8 months ago)
- Topics: bucklescript, gatsby, react, reasonml, static-site
- Language: JavaScript
- Homepage:
- Size: 6.43 MB
- Stars: 39
- Watchers: 1
- Forks: 4
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - gatsby-starter-reasonml - safe ReasonML | iwilsonq | 39 | (JavaScript)
README
Gatsby ReasonML StarterThis 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)