Coder Social home page Coder Social logo

f168's Introduction

PWA Boilerplate

This is the Next.js application for PWA Frontend Template

Lighthouse

Lighthouse Accessibility Badge Lighthouse Best Practices Badge Lighthouse Performance Badge Lighthouse PWA Badge Lighthouse SEO Badge

uTests Coverage Status

Statements Branches Functions Lines
Statements Branches Functions Lines

What chore library inside this repository?

- jest & testing-library
- tailwindcss
- @tanstack/react-query
- [email protected]
- next-pwa
- axios
- dayjs

How to Install

Prerequisite

node ^v18.13.0 (stable version)
npm ^7.10.0

run script

npx tomibudis/F168 {appName}

When init project successfully. follow the following command script to start

Development

Run locally as dev mode

Build Mode (production)

uTest

  • npm run test

build coverage badge

  • npm run test:coverage

Folder Structure

src
├── components
│   └── index.ts
├── constants
│   └── index.ts
├── hooks
│   ├── mutations
│   └── queries
│       └── use-todo.ts
├── pages
│   ├── _app.tsx
│   ├── _document.tsx
│   ├── _offline.tsx
│   ├── api
│   │   └── hello.ts
│   └── index.tsx
├── styles
│   ├── config.scss
│   └── globals.scss
├── types
├── utils
│   ├── axios.ts
│   ├── date.ts
│   └── test-utils.tsx
└── views
    └── homepage
        ├── __test__
        │   ├── __snapshots__
        │   │   └── Homepage.test.tsx.snap
        │   └── homepage.test.tsx
        ├── homepage.tsx
        └── index.ts

Commit

All commit messages should conform to the conventional commit format and should use following syntax: type(scope): subject. While the type is mandatory, the scope is optional. Examples:

docs: add README.md
fix(Header): fix padding issue
feat: create Home view

Main types are fix and feat, however it is possible to also use:

  • chore
  • docs
  • style
  • refactor
  • perf
  • test

Generate lighthouse

  1. build application with npm run build
  2. run app locally npm run start
  3. run npx lighthouse-badges --urls http://localhost:3000 -o lighthouse

How to Publish NPM Registry

https://docs.npmjs.com/creating-and-publishing-scoped-public-packages

f168's People

Contributors

slepzs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.