GithubHelp home page GithubHelp logo

data-miner00 / react-rescript-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 655 KB

An opionionated React template powered by ReScript and Esbuild

Home Page: https://react-rescript-template-kohl.vercel.app

License: MIT License

HTML 3.45% ReScript 90.82% JavaScript 5.48% CSS 0.24%
react esbuild rescript tailwindcss

react-rescript-template's Introduction

Contributors Forks Stargazers Issues MIT License


React-Rescript Template

An opionionated React Project Template with Rescript!
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Acknowledgments

About The Project

Template screenshot

An extremely opinionated template for building React applications with Rescript. Focus on the application itself rather than all these low-level configuration stuffs.

Incentives:

  • Wanted to try out Rescript
  • Don't want to use create-react-app
  • Don't want to use Next.js
  • Buitl this React template so I can use 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 have contributed to expanding this template!

(back to top)

Built With

The technologies and tools used within this template.

  • React
  • Esbuild
  • Rescript
  • TailwindCSS

(back to top)

Getting Started

Prerequisites

The list of tools that is used when development.

  • npm
    npm install npm@latest -g
  • Pnpm
    npm i -g pnpm
  • Git

Installation

To use this template for personal use or contribution, simply perform the following. A total of 3 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
    git clone https://github.com/data-miner00/react-rescript-template.git
  2. Install Node dependencies
    pnpm i
  3. Optionally update the dependencies
    pnpm up --latest
  4. Start Esbuild, Tailwind JIT and local dev server concurrently. Skip 5,6,7, 8
    pnpm dev
  5. Start Rescript watcher (requires 1 terminal)
    pnpm watch:res
  6. Start Tailwind JIT (requires 1 terminal)
    pnpm watch:tw
  7. Start Esbuild (requires 1 terminal)
    pnpm watch:esb
  8. Finally start local dev server (requires 1 terminal)
    pnpm start
  9. Compile for production
    pnpm build
  10. Purge dist folder
    pnpm purge

(back to top)

Roadmap

  • Add Rescript
  • Add 404 page
  • Add Styling
    • Sass
    • Tailwind
  • Dark mode
  • Add PWA Manifest
  • Responsive styles
  • Mobile Sidebar
  • New features page

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make 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

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Acknowledgments

List of resources that are helpful and would like to give credit to.

(back to top)

react-rescript-template's People

Contributors

data-miner00 avatar

Watchers

 avatar  avatar

react-rescript-template's Issues

Mobile Sidebar

  • Add sidebar that only accessible on mobile screen with state

Broken path when deployed

Any path that is not root / such as /features or even /404 too cannot be located.

Error message on Vercel when visiting the paths.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.