/fullstack-next-template

Fullstack Next.js Boilerplate with TypeScript, MongoDB & MVC architecture with full customization. Can be easy to deployed on Vercel 🚀 [I always use this to start new project]

Primary LanguageTypeScriptMIT LicenseMIT

This is a Next.js project bootstrapped with create-next-app.

Features

This starter-template is packed with:

  • 🎉 Next.js 13.
  • ⚛️ React 18.
  • ✨ TypeScript.
  • 💨 Tailwind CSS 3 - Pre-setup with PostCSS Nesting and Import.
  • 📈 Path Alias - Import your module in src using @/ prefix, and in public using #/.
  • 📏 ESLint - Find and fix problems in your code.
  • 🐶 Husky - Run scripts on your staged files before they are committed.
  • 🧩 Pre-built components to handle dynamic Lazyload, Image and SVG in packages/components/base.
  • ⚡️ Pre-setup backend things in server/ folders.
  • 🪄 Pre-built utilities to handle common things in backend and frontend.
  • 🔥 Minimal dependencies & full of customization - Of course this template can be fully customize. You can delete that you don't need or change the DB from MongoDB to your very DB.
  • 📦 Monorepo with Turborepo - If you want to setup this template in Monorepo project, you can choose branch with-turborepo

Getting Started

First, 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.

API routes can be accessed on http://localhost:3000/api/voucher. This endpoint can be edited in pages/api/voucher.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

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 our Next.js deployment documentation for more details.