ioulian / next-io-ghent-starter

Next.js starter kit for iO Ghent
https://ioulian.github.io/next-io-ghent-starter/
4 stars 0 forks source link
nextjs react

next-io-ghent-starter kit (Next.js v14)

This is a Next.js starter kit created to be used as a template to start new projects in iO Ghent campus. The idea behind is that you can directly start on working on your project instead of setting up Next.js first.

It contains a lot of useful presets and common components to be used in your project. Using latest technologies and dev tools we allow developers to focus on the project first.

Features

Getting Started

Install

yarn create next-app --example https://github.com/ioulian/next-io-ghent-starter
yarn dev

Remove demo content

Go live checklist

Redux

If you want to use redux on the server (authentication for example), you'll need to convert your app to use SSR on every page where you want to use redux. You'll want to enable cookie storage for select redux values (in src/store/store.ts).

If you want to use redux, but with SSG, you should remove HYDRATION from slices.

JWT Auth

If you want to use JWT Auth presets, you'll need to use SSR and use AuthFetcher in pages/_app.tsx.

Build

On build step, we run some basic production checks. You should disable them if they are not needed.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Issues/TODO's

Issues and TODO's can be found here: https://github.com/ioulian/next-io-ghent-starter/issues

Component export convention

We use export default in an component, see discussion here: https://esdiscuss.org/topic/moduleimport