Giter Site home page Giter Site logo

nextjs-boilerplate's Introduction

Next.js Boilerplate with TypeScript, TailwindCSS, and Redux-Saga

Just like it says on the tin. Clone and be on your way, or use the create-next-app script:

yarn create next-app -e https://github.com/spro/nextjs-boilerplate
  • TypeScript configuration
  • TailwindCSS with Tailwind Forms and purging configured
  • Starting point for state with Redux-Saga
    • Model, response, and page state types
    • Basic load/complete/error actions and reducer
    • Saga to call API and dispatch completed/error states
    • "Isomorphic" API usable via fetch from the client or directly in getServerSideProps
    • Server Side Rendering support with Redux thanks to next-redux-wrapper
  • Easy use of Heroicons with heroicons-react
  • A few handy common utilities like Input and Loader components

Demo

Fetch 5 random things with a fake delay and 20% chance of error:

https://nextjs-boilerplate.spro.vercel.app/

Or pre-render the page with SSR:

https://nextjs-boilerplate.spro.vercel.app/?preload=1

nextjs-boilerplate's People

Contributors

spro avatar

Stargazers

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

Watchers

 avatar  avatar  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.