Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.24 KB

README.md

File metadata and controls

33 lines (19 loc) · 1.24 KB

Next.js API

This is a Next.js project similar to the famous neofetch terminal tool. It shows how to use the Next.js API routes

  • We mainly use the Node.js OS module to get the data from the server. We then pass that data to the client-side using the Next.js API routes and getServerSideProps method

Note: You can also use the getStaticProps method to get the data from the server but I decided to use the getServerSideProps method because I added a little bit of dynamic data

Live Demo

Screenshot

screenshot

Getting Started

  • clone the repo and cd into the directory
  • run npm install to install the dependencies
  • run npm run dev to start the development server
  • open http://localhost:3000 with your browser to see the result

Note: This project is built with the Typescript, ESLint create-next-app template

Learn More

License