next-typescript
The objective of this boilerplate is to set up everything the developer will need (in terms of configuration) to start a next + typescript project. Eslint, prettier and husky are configured to work independent of the user's IDE configuration (as long as it's vscode).
Featured Aspects of the Stack
Things to Note
- It comes with Inter (it's better to host fonts here rather than getting them from google fonts).
- Pages, components, etc... are located under
/src
. If you are changing this, be sure to also updatetsconfig.json
'sbaseUrl
.
Development
-
Install yarn:
npm install -g yarn
-
Install the dependencies with:
yarn
-
Start developing and watch for code changes:
yarn dev
Important Things to Do
- Check out
.env.example
for required environment variables to run the project. - Add favicons. (Re)Place in
./public
: 32x32favicon.ico
, perfect squarefavicon.svg
andfavicon-dark.svg
(dark theme), 512x512icon-512.png
, 192x192icon-192.png
, 180x180apple-touch-icon.png
. You can use something like this for some (better to use Gimp, Photoshop, or any graphics editor; read more about it here). - Delete
console.log(basementLog)
if not wanted β it's under_app.tsx
. - Replace the contents of this file (
README.md
) with the contents of theREADME.example.md
file β make sure to adapt it to your project's specific needs. Finally, delete the oldREADME.example.md
file.
If you find you need to make extra config to make this work more seamlessly, feel free to submit a PR suggesting your changes. Our focus is to get you up and running with the least steps and burden as possible.