Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/persianturtle/rescript-react-boilerplate
An opinionated app shell for ReScript & React progressive web apps
https://github.com/persianturtle/rescript-react-boilerplate
emotion esbuild pwa react rescript rescript-react sass starter-kit styled-ppx
Last synced: 14 days ago
JSON representation
An opinionated app shell for ReScript & React progressive web apps
- Host: GitHub
- URL: https://github.com/persianturtle/rescript-react-boilerplate
- Owner: persianturtle
- License: mit
- Created: 2018-01-30T03:12:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T02:33:02.000Z (over 1 year ago)
- Last Synced: 2024-08-03T01:29:26.639Z (3 months ago)
- Topics: emotion, esbuild, pwa, react, rescript, rescript-react, sass, starter-kit, styled-ppx
- Language: ReScript
- Homepage: https://rescript-react-boilerplate.persianturtle.com
- Size: 4.61 MB
- Stars: 61
- Watchers: 6
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rescript React Boilerplate
An opinionated implementation of the following technologies:
- ReScript & React
- Simple routing using [ReScript's built in router](https://rescript-lang.org/docs/react/latest/router)
- Quick and dirty route transitions via [ReactTransitionGroup](https://github.com/reactjs/react-transition-group)
- Choose between [Emotion](https://github.com/persianturtle/rescript-react-boilerplate), [Sass](https://github.com/persianturtle/rescript-react-boilerplate/tree/sass) or [styled-ppx](https://github.com/persianturtle/rescript-react-boilerplate/tree/styled-ppx) for styling
- [http-server](https://github.com/http-party/http-server) for a quick and easy development server
- [esbuild](https://esbuild.github.io/) for fast bundling
- Automatically generated [ServiceWorker](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker) for rich offline experiences (here's a great [in-depth course on the topic](https://classroom.udacity.com/courses/ud899))# CSS Flavors
- [Emotion](https://github.com/persianturtle/rescript-react-boilerplate)
- [styled-ppx](https://github.com/persianturtle/rescript-react-boilerplate/tree/styled-ppx)
- [Sass](https://github.com/persianturtle/rescript-react-boilerplate/tree/sass)## Getting Started
```sh
npm install
npm start
open http://localhost:8081
```## Demo
![Demo](https://github.com/persianturtle/rescript-react-boilerplate/blob/master/img/demo.gif)
## Tutorial
(Video overview coming soon)
## Development Environment
Since we're using ReScript and esbuild, our build times are fast.
Because of this, we use [chokidar (a cross-platform file watcher)](https://github.com/paulmillr/chokidar) to watch for changes and then rebuild the `dist` directory on every change. The `dist` directory is the same whether in development or in production.
The build should work on macOS, Windows & Linux.
![Demo](https://github.com/persianturtle/rescript-react-boilerplate/blob/master/img/start.png)