A simple webapp template to help you avoid doing the same project setup dance every time.
No tool will work for everyone, and this template is no exception. This is mostly created from my personal experience spending the first two hours of every project figuring out how to get the same tools working together.
As always: forks, issues, and pull requests are welcome, and thank you for checking this out.
- Next.js - React Framework
- React - Rendering Library
- Yarn - Package Manager
- TypeScript - Type Checker
- ESLint - Linter
- Prettier - Formatter
Create a repo using this template by pressing the "Use this template" button.
Clone your new repo locally:
$ git clone https://github.com/You/your-new-repo.gitInstall the needed packages:
$ cd your-new-repo
$ yarnJust open a spare terminal and run:
$ yarn devThat's it, your site is available at localhost:3000 and will automatically update live with any changes you make.
First build the project, this will likely take longer then usual due to release only optimizations:
$ yarn buildThen, after your build is ready, you can start in production with:
$ yarn startVisit localhost:3000 again to see your new webapp in release mode.