shaunsaker / ultimate-react-boilerplate

I’m a React Typescript boilerplate πŸ˜›Β Set up your next project/prototype with minimal input, so you can do what you do best, build and test amazing new products πŸ”₯

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ultimate React Boilerplate

Main

Netlify Status

What is it?

I’m a React Typescript boilerplate with a WIP backend baked in (thanks to Supabase) πŸ˜› Set up your next project/prototype with minimal input, so you can do what you do best, build and test amazing new products πŸ”₯

You can see me in action here.

What's in the box?

Setup

OBVIOUS NOTE: Replace "PROJECT_NAME" with your own project's name πŸ˜‰

git clone https://github.com/shaunsaker/ultimate-react-boilerplate.git PROJECT_NAME
cd PROJECT_NAME
yarn
rm -rf .git && git init && git add . && git commit -m "init" # reset git and commit
npm pkg set name="PROJECT_NAME" # change package.json name

Running

yarn dev

Deployment

I'd recommend using Netlify for deployment and connecting the site to your Github repo so that new deploys are triggered on every push to master.

Generating Public Assets

After spending many hours building an app, I've found that having to manually generate public assets is one of the most annoying things ever! So I created a script to do this for you πŸ˜› All you need to do is:

  1. Update ./public/icon.svg with your logo. It should be a square svg, size does not count in this case πŸ˜‰
  2. Customise ./app.json.
  3. Run the script:
yarn ts-node ./scripts/generateAssets

And boom πŸ’£πŸŽ†, you have all the public assets you'll need, optimised and including a PWA setup πŸ˜Žβœ…

Here it is in action:

Generating assets

About

I’m a React Typescript boilerplate πŸ˜›Β Set up your next project/prototype with minimal input, so you can do what you do best, build and test amazing new products πŸ”₯


Languages

Language:TypeScript 94.8%Language:JavaScript 3.1%Language:HTML 1.8%Language:Shell 0.2%