GithubHelp home page GithubHelp logo

dwarvesf / nextjs-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
36.0 3.0 7.0 1.53 MB

Opinionated React template for building web applications at scale

Home Page: https://df-nextjs-boilerplate.netlify.app/

Shell 0.48% JavaScript 15.04% TypeScript 83.64% CSS 0.14% HTML 0.17% Dockerfile 0.53%
react nextjs boilerplate template tailwindcss swr cypress typescript jest

nextjs-boilerplate's Introduction

Dwarves NextJS Boilerplate

Dwarves Foundation Dwarves Foundation Discord

An opinionated production-ready frontend boilerplate built on top of NextJS, shipped with TypeScript, SWR, TailwindCSS, Jest, testing-library, Cypress, and Storybook.

Quick Start

git clone --depth=1 [email protected]:dwarvesf/nextjs-boilerplate.git my-project-name
cd my-project-name
pnpm install

Then, you can run locally in development mode with live reload:

pnpm dev

Open http://localhost:3000 with your favorite browser to see your project.

Deployment

Environment URL
Prod https://df-nextjs-boilerplate.netlify.app/

Resources

Name Description Link
UI Docs Storybook https://df-nextjs-boilerplate-storybook.netlify.app/
API Docs Swagger https://demo-api.dwarvesf.com/swagger/index.html
API Source Go https://github.com/dwarvesf/go-api.git

Documentation

nextjs-boilerplate's People

Contributors

hthai2201 avatar monotykamary avatar tienan92it avatar toanbku avatar trankhacvy avatar tuanddd avatar zlatanpham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nextjs-boilerplate's Issues

inline-react-svg not working on icons properly?

Describe the bug

How does the program work in its current state? A clear and concise description of what you expected to happen.

After installing an app and going to Dahsboard with demo account, I see lots of errors similar to this one:

Warning: Invalid DOM property fill-rule. Did you mean fillRule?

Steps to reproduce

Install and start app with:

git clone --depth=1 [email protected]:dwarvesf/nextjs-boilerplate.git my-project-name
cd my-project-name
yarn install
yarn dev

Open http://localhost:3000/ and login with demo account

Expected behaviour

Errors should not be present, fillRule should be generated instead of fill-rule.

Environment

You may write here the specifications like the version of the project, operating system, or hardware if applicable.

Desktop (please complete the following information):

  • MacOS 12.5.1
  • Chrome

I tried to debug it and inside that plugin found transformSvg which does that

// converts
// <svg stroke-width="5">
// to
// <svg strokeWidth="5">
// don't convert any custom data-* or aria-* attributes just wrap in quotes

but it's not triggered
Looking further I found this condition, that supposedly executes that transform:

node.callee.name === 'require'

I still debugging it, but seems it only works on svg import, and not by passing content with:

babel.transform(content

Maybe something had changed, or was this error present before?

Upgrade packages that have Major changes

Describe the bug

Some packages have major changes from our latest version. Let's upgrade them.

Steps to reproduce

  1. Run cmd to check
    pnpm outdated -r
  2. Upgrade packages have latest in red

Expected behaviour

All packages are updated to latest version.

Screenshots
Screenshot 2023-08-11 at 15 55 51

Upgrade Deprecated packages

Describe the bug

There are some deprecated packages in this repo. Let's upgrade or replace by alternative packages.

Steps to reproduce

  1. Run check cmd
    pnpm outdated -r
  2. Replace packages with Latest is Deprecated.

Expected behaviour

All deprecated packages are replaced.
Screenshot 2023-08-11 at 15 50 35

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.