Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naufaldi/next-zustand
Repo for Learning Zustand
https://github.com/naufaldi/next-zustand
Last synced: 10 days ago
JSON representation
Repo for Learning Zustand
- Host: GitHub
- URL: https://github.com/naufaldi/next-zustand
- Owner: naufaldi
- License: mit
- Created: 2022-11-04T08:13:23.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-04T08:13:26.000Z (about 2 years ago)
- Last Synced: 2024-11-14T17:51:34.235Z (2 months ago)
- Language: TypeScript
- Size: 71.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a Next.js project bootstrapped with
create-next-app
, added with Chakra UI and TypeScript setup.
Start developing right away!## 🔋 ⚡ Battery Packed template
- ✔️ toolings for linting, formatting, and conventions configured
`eslint`, `prettier`, `husky`, `lint-staged`, `commitlint`, `commitizen`, and `standard-version`
- 📱 PWA-ready
`next-pwa` configured, disabled by default, just enable it through `next.config.js`
- 🔎 SEO optimization configured
with `next-seo` and `next-sitemap`. you'll need to reconfigure or tinker with it to get it right according to your needs, but it's there if you need it.
- 🎨 basic responsive layout configured
don't need it? just remove it 😃
[![CodeFactor](https://www.codefactor.io/repository/github/sozonome/nextarter-chakra/badge)](https://www.codefactor.io/repository/github/sozonome/nextarter-chakra)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=sozonome_nextarter-chakra&metric=alert_status)](https://sonarcloud.io/dashboard?id=sozonome_nextarter-chakra) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=sozonome_nextarter-chakra&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=sozonome_nextarter-chakra) [![Bugs](https://sonarcloud.io/api/project_badges/measure?project=sozonome_nextarter-chakra&metric=bugs)](https://sonarcloud.io/dashboard?id=sozonome_nextarter-chakra) [![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=sozonome_nextarter-chakra&metric=code_smells)](https://sonarcloud.io/dashboard?id=sozonome_nextarter-chakra) [![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=sozonome_nextarter-chakra&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=sozonome_nextarter-chakra)[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Depfu](https://badges.depfu.com/badges/9e426e58f99c3bd470987a3c6b014a96/overview.svg)](https://depfu.com/github/sozonome/nextarter-chakra?project_id=26148) [![Depfu](https://badges.depfu.com/badges/9e426e58f99c3bd470987a3c6b014a96/count.svg)](https://depfu.com/github/sozonome/nextarter-chakra?project_id=26148)
## Pre-requisites
1. [Node.js](https://nodejs.org/en/) or nvm installed.
2. `yarn` installed.## Getting Started
1. You can either click `Use this template` button on this repository and clone the repo or directly from your terminal:
```bash
npx degit sozonome/nextarter-chakra
```2. After cloning the project, run this command: `yarn` or `yarn install`
3. Then, run the development server:
```bash
yarn dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
You can start editing the page by modifying `src/lib/pages/index.tsx`. The page auto-updates as you edit the file.
## How to Run e2e Test (in local machine)
1. Build production with `yarn build`, then run the production build using `yarn start`.
2. Open another terminal (or new terminal tab, don't cancel / close the production server), then run the test with `yarn test:e2e`.References:
- https://nextjs.org/docs/testing#playwright
- https://nextjs.org/docs/testing#running-your-playwright-tests