Experience-Monks / nextjs-boilerplate

Jam3 NextJS Generator for SPA, SSG, SSR and JAMStack applications
https://generator.jam3.net/
MIT License
107 stars 18 forks source link
backend boilerplate frontend generator nextjs nyg react ssr static

Welcome to Monks NextJS Generator! πŸš€

Hey there, developer! Ready to dive into our awesome NextJS Boilerplate? This guide will help you set up and start developing in no time. Let's get started!

Table of Contents

Setting Up

1. Check Your Node and NPM Versions

First things first, let's make sure you're using the right versions:

Pro tip: Use NVM to manage your Node versions easily!

nvm install 18.19.0
nvm use 18.19.0

2. Install git-lfs

We use Git LFS for managing large files. Here's how to set it up:

3. Set Up Your GSAP Token

To install our npm packages, you'll need a GSAP token. Ask your project lead for this key!

Remember to restart your terminal after setting this up!

4. Set Up Your Linters

For a smooth coding experience, set up these linters in VSCode:

Update your VSCode settings (JSON) with our recommended configuration:

  1. Press Cmd + Shift + P (on Mac) or Ctrl + Shift + P (on Windows/Linux)
  2. Type "Open Settings (JSON)" and select it
  3. Add or update the following settings:
{
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[scss]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "explicit"
  },
  "stylelint.validate": ["css", "scss"]
}

These settings ensure that:

With these linters set up, you'll catch and fix issues early, keeping your code clean and consistent!

5. Clone the Repo

git clone git@github.com:Experience-Monks/nextjs-boilerplate.git

6. Install Dependencies

npm install

Development

Ready to code? Start your local server:

npm run dev

This will fire up:

Documentation

Want to dive deeper? Check out our docs:

License

We're open source! Check out our MIT License.

Happy coding! πŸŽ‰πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»