This is a Next.js project bootstrapped with create-next-app
.
I'm tired of wasting time on same configuration again and again so I just make a template to use for my future projects.
- Personal Server-Side Rendering Starter App made with Next.js, NextAuth, Typescript, and Tailwind CSS with Emotion
- Formatted with Stylelint, Eslint, and Prettier
- Configured with Jest Testing Library
- Clone the repository and change directory.
git clone https://github.com/xiaooye/nextjs-example.git
cd nextjs-example
- add database support for Login with NextAuth followed by .env.local.example
cp .env.local.example .env.local
- See next-auth example for more information and documentation.
- install the project
npm install
# or
yarn
- run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
- Adding Jest
- Adding Jest Tests
- Adding React Test Library
- Adding CSS
- Responsive CSS
- Adding State Management (Recoil?/Redux?/React Context?)
- Eslint?
- Database Support