/Nextjs-Starter

Next.js minimal starter

Primary LanguageJavaScript

logo


NextJS Minimal Starter

Contents

Developer experience first:

  • ๐Ÿ”ฅ Next.js for Static Site Generator
  • ๐ŸŽจ Integrate with Tailwind CSS
  • ๐Ÿ’… PostCSS for processing Tailwind CSS
  • โœ๏ธ Linter with ESLint
  • ๐Ÿ›  Code Formatter with Prettier
  • ๐Ÿงช Husky You can use it to lint your commit messages, run tests, lint code, etc... when you commit or push. Husky supports all Git hooks.
  • ๐Ÿง  Commitlint helps your team adhere to a commit convention
  • ๐Ÿ“• Storybook for building UI components and pages in isolation.
  • ๐Ÿ†š .vscode/settings.json specific settings that only apply to this project and Debugging support

Built-in feature from Next.js:

  • โ˜• Minify HTML & CSS
  • ๐Ÿ’จ Live reload
  • โœ… Cache busting

Philosophy

  • Minimal code
  • SEO-friendly
  • ๐Ÿš€ Production-ready

Requirements

  • Node.js and yarn

Installation

Clone repo:

git clone https://github.com/aimdexter/Nextjs_starter
cd Nextjs_starter

Make it your own:

rm -rf .git && git init && yarn init

Make it your own (windows users):

rmdir .git

โ„น๏ธ This re-initializes the repo and sets up your project.

Install the dependencies:

yarn install

or

npm install

Development

Start a live-reload development server:

yarn dev

or

npm run dev

Generate a production build:

yarn build

or

npm run build

The generated HTML and CSS files are minified (built-in feature from Next js). It will also removed unused CSS from Tailwind CSS.

Deployment

โ–ฒ Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out the Next.js deployment documentation for more details.

Deploy with Vercel

โŠš Deploy on Netlify

Deploy to Netlify Button

Click this button and it will help you create a new repo, create a new Netlify project, and deploy!

Contribution

I'm open to contributions & suggestions in making this a lot better โœ‹

Made with โ™ฅ by Aimade Anouar Twitter

License

MIT