• Stars
    star
    163
  • Rank 231,141 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 3 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Starter template for NextJs with TypeScript. Supports Tailwind with CSS-Modules. Vitest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.

Nextal - Next Starter Template

Mocking up web app with Nextal(speed)


Live Demo

Features

Coding Style

Dev tools

Try it now!

GitHub Template

Create a repo from this template on GitHub.

Clone to local

If you prefer to do it manually with the cleaner git history

npx degit jvidalv/nextal my-nextjs-app
cd my-nextjs-app
yarn # If you don't have yarn installed, run: npm install -g yarn

Checklist

When you use this template, try follow the checklist to update your info properly

  • Rename name and author fields in package.json
  • Change the author name in LICENSE
  • Change the title in index.html
  • Change the favicon in public
  • Modify the manifest in public
  • Clean up the README's

And, enjoy :)

Usage

Development

Type:

yarn dev

Then visit http://localhost:3000

Build

To build like if it was for production run

yarn build
yarn start

Then you can visit http://localhost:3000 and check that everything works as expected.

Deploy on Netlify

Go to Netlify and select your repository, OK along the way, and your App will be live in a minute.

Issues

Dark mode

With CSS-Modules the "global" css-var .dark is not visible inside .module.css files, thus the Tailwind variant dark:x does not work.

In order for it to work inside module.css files you must leverage to :global, example:

:global(.dark) .title {
  @apply text-white;
}

Husky

If pre-commit hooks are not working be sure that you have installed husky: husky install.

By default this command should be triggered after yarn/npm deps are installed.

Why

I have created several NextJs webs recently. Setting the configs up is kinda the bottleneck for me to make the ideas simply come true within a very short time.

So I made this starter template for myself to create apps more easily, along with some good practices that I have learned from making those apps. Feel free to tweak it or even maintains your own forks.

More Repositories

1

vital

Starter template for Vite with React (TypeScript). Supports Tailwind. Vitest and @react/testing-library configured and ready to go. Also ESLint, Prettier, Husky, Commit-lint and Atomic Design for components.
TypeScript
258
star
2

astrale

React Native mobile application. Find out what the future holds for you in this astrology app, available for Android. Powered with Python, MongoDB and PHP.
JavaScript
149
star
3

super-simple-sitemap-generator

Node powered scraper that iterates trough all the internal links of the specified url. It works on CSR pages (React, Angular) with dynamic urls.
JavaScript
16
star
4

parcel-reporter-multiple-static-file-copier

Parcel v2 plugin. Copies multiple specified files and folders into specified folders once build finishes successfully.
JavaScript
8
star
5

mv-ignited

Browser extension for mediavida.com that enhances the UX and provides extra funcionality.
TypeScript
4
star
6

python-scrapers

Python scrapers for all my apps
Python
1
star
7

100cims

JavaScript
1
star
8

yii2-vvadmin

Multi language Wordpress wannabe that lets you write articles, create categories, tags, upload media and has a user role system. Can also work as a headless CRM thanks to the in build api rest.
HTML
1
star
9

vvlog

React hand made blog with support for articles, categories, authors, tags, multiple languages, themes and more.
JavaScript
1
star
10

react-ts-cups-generator

Generador configurable de CUPS (Cรณdigo รบnico e identificador de un punto de suministro de energรญa ya sea luz o gas canalizado).
TypeScript
1
star