GithubHelp home page GithubHelp logo

santhosh-s14 / nextjs-dashboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1008 KB

A Next.js project to learn main features of next.js by building a full stack application

Home Page: https://nextjs-dashboard-zeta-rosy-62.vercel.app

TypeScript 86.68% JavaScript 12.86% CSS 0.47%

nextjs-dashboard's Introduction

Next.js App Router Course - Starter

This is the starter template for the Next.js App Router Course. It contains the starting code for the dashboard application.

  • Create Next App
  • Global css styling && Tailwind && clsx for conditional styling
  • Added custom fonts using next/font module and google fonts
  • Added Image component from next/image module for better optimization of images
  • Created routes using file-system routing
  • A common layout that can be shared between mutiple pages
  • Partial rendering, Colocation and root layout concepts
  • Navigating between pages using Link component
    • Client side navigation
    • from next/link
    • Automatic code splitting and prefetching
  • usePathname hook for getting the current path the user is in and apply css based on condition using clsx
  • Added the next js project to Vercel and deployed it
  • Created a Postgres storage via Vercel and included the details of the db in .env file
  • Seeded the database with inital data
  • Fetched data using server components / actions
  • Rendered the data in the dashboard
    • Saw about the concept of request waterfall and how to improve performance to solve all the requests parallely
  • Static vs Dynamic rendering
    • Static rendering
      • Faster websites
      • Reduced server loads
      • SEO
    • Dynamic rendering
      • Real-time data
      • User specific content
      • Request time information
    • Can be made dynamic using unstable_nostore from next/cache
    • Added noStore to all the server action calls

For more information, see the course curriculum on the Next.js Website.

nextjs-dashboard's People

Contributors

santhosh-s14 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.