This repo is a quick way to start any new project. It comes configured with the following:
- NextJS
- TypeScript
- next-auth with a sign in and sign out flow
- Emotion for CSS with a basic dashboard layout
- Jest and jest-dom and testing-library
- eslint-config-prettier
- eslint-plugin-emotion
- eslint-plugin-jest-dom
- eslint-plugin-react-hooks
- eslint-plugin-react
- eslint-plugin-jsx-a11y
- eslint-plugin-import
- eslint-plugin-simple-import-sort
In addition, lint-staged and husky come pre-configured to run eslint, prettier, and jest on pre-commit.
- Install Dependencies
npm i
# or
yarn
-
Create a copy of .env.local.copy named .env.local (it will be ignored by .gitignore). Add the missing values. Refer to next-auth docs for help.
-
Create Hasura Cloud instance
-
Search and edit all
TODO
s -
Run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.