Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/data-miner00/starker-regen
An experimental React template with F#
https://github.com/data-miner00/starker-regen
esbuild fsharp javascript react tailwindcss
Last synced: 23 days ago
JSON representation
An experimental React template with F#
- Host: GitHub
- URL: https://github.com/data-miner00/starker-regen
- Owner: data-miner00
- License: mit
- Created: 2023-03-16T12:46:24.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-23T01:50:19.000Z (over 1 year ago)
- Last Synced: 2024-04-17T04:55:53.073Z (10 months ago)
- Topics: esbuild, fsharp, javascript, react, tailwindcss
- Language: JavaScript
- Homepage:
- Size: 927 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Contributors][contributors-shield]][contributors-url]
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]
[![MIT License][license-shield]][license-url]
Starker Regen
An experimental and minimal React template with F#.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
## About The Project
![Template screenshot](/public/assets/screenshot.png)
An extremely opinionated template for building React applications with F#. This template allows users to focus on the application itself rather than all these low-level configuration stuff.
Incentives:
- Wanted to try out F#, Fable and Feliz
- Buitl this React template so I can use it for other projects.Of course, no one template will serve all projects since your needs may be different. So I'll be adding more in the near future. You may also suggest changes by forking this repo and creating a pull request or opening an issue. Thanks to all the people who have contributed to expanding this template!
### Built With
The technologies and tools used within this template.
- React
- Esbuild
- F#
- JavaScript
- Fable
- Feliz
- TailwindCSS### Design
The template uses **Feliz** and **Fable** to transpile the F# source files into plain JavaScript files that are later bundled with **esbuild** into the `public/dist` folder. **Tailwind CSS** will scan for classes used in the F# source file with its JIT compilation feature.
## Getting Started
### Prerequisites
The list of tools that are used when development.
- npm
```sh
npm install npm@latest -g
```
- Pnpm
```sh
npm i -g pnpm
```
- [.NET CLI](https://dotnet.microsoft.com/en-us/download)
- [Git](https://git-scm.com/downloads)### Installation
_To use this template for personal use or contribution, simply perform the following._ A total of **2 terminals** are required to get 3 of the core components of application up and running for development. However, it is possible to start all the necessary processes with one terminal by using `pnpm dev` as shown on step 4.
1. Clone the repo
```sh
git clone https://github.com/data-miner00/starker-regen.git
```
2. Install Node dependencies
```sh
pnpm i
```
3. Optionally update the dependencies
```sh
pnpm up --latest
```
4. Start Fable, Esbuild, Tailwind JIT and local dev server concurrently. Skip 5, 6
```sh
pnpm dev
```
5. Start Fable Compiler and Esbuild (requires 1 terminal)
```sh
pnpm watch:fb
```
6. Start Tailwind JIT (requires 1 terminal)
```sh
pnpm watch:tw
```
7. Compile for production
```sh
pnpm build
```
8. Purge dist folder
```sh
pnpm purge
```## Roadmap
- [ ] Elmish Routing
- [ ] Data-driven template
- [ ] Interop showcase
- [ ] Fetching data
- [ ] 404 PageSee the [open issues](https://github.com/data-miner00/starker-regen/issues) for a full list of proposed features (and known issues).
## Contributing
Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request## License
Distributed under the MIT License. See `LICENSE` for more information.
## Acknowledgments
List of resources that are helpful and would like to give credit to.
- [Feliz](https://zaid-ajaj.github.io/Feliz/#/)
- [Elmish Navigation with Feliz.Router](https://www.compositional-it.com/news-blog/elmish-navigation-with-feliz-router/)
- [The Elmish Book](https://zaid-ajaj.github.io/the-elmish-book/#/)[contributors-shield]: https://img.shields.io/github/contributors/data-miner00/starker-regen.svg?style=for-the-badge
[contributors-url]: https://github.com/data-miner00/starker-regen/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/data-miner00/starker-regen.svg?style=for-the-badge
[forks-url]: https://github.com/data-miner00/starker-regen/network/members
[stars-shield]: https://img.shields.io/github/stars/data-miner00/starker-regen.svg?style=for-the-badge
[stars-url]: https://github.com/data-miner00/starker-regen/stargazers
[issues-shield]: https://img.shields.io/github/issues/data-miner00/starker-regen.svg?style=for-the-badge
[issues-url]: https://github.com/data-miner00/starker-regen/issues
[license-shield]: https://img.shields.io/github/license/data-miner00/starker-regen.svg?style=for-the-badge
[license-url]: https://github.com/data-miner00/starker-regen/blob/master/LICENSE.txt
[product-screenshot]: images/screenshot.png