This is a Next.js project bootstrapped with create-next-app
and enahnced with my favorite configuration and tooling.
- Use NVM to install Node.js and NPM
- Visual Studio Code
- GitHub Desktop
You only have to do this the first time you set up the app.
-
Run
npm install
ornpm run deps-check
to install dependencies -
Run
npx vercel@latest link
to link your local project to Vercel. This will enable you to automatically pull environment variables for development. nextjs-template is hosted under theMikael Lirbank
Vercel project aslirbank/nextjs-template
. The development environment variables are pulled down from Vercel every time the app is started withnpm run dev
.
First, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx
. The page auto-updates as you edit the file.
This project uses next/font
to automatically optimize and load Inter, a custom Google Font.
- https://nextjs.org/
- https://vitest.dev/
- https://tailwindcss.com/docs/guides/nextjs
- https://prettier.io/
- https://typescript-eslint.io/linting/configs/#strict
- https://www.npmjs.com/package/eslint-plugin-deprecation
- https://www.npmjs.com/package/@total-typescript/ts-reset
- https://www.npmjs.com/package/tiny-invariant
- https://code.visualstudio.com/
Vercel will automatically run Prettier and tests (as well as ESLint) before building and deploying the app. No additional configuration is needed.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
npm run dev
- Pull the latest developer environment variables from Vercel and start the development servernpm run build
- Check Prettier formatting, run tests, and build the production app. This script is run by Vercel when deploying.npm run start
- Run the app built withnpm run build
npm run lint
- Link all filesnpm run prettier
- Format all files with Prettiernpm run test
- Run tests in watch modenpm run deps-check
- Install dependencies and check for available updatesnpm run deps-upgrade
- Upgrade dependencies with minor and patch versions