Skip to content

This is a Next.js project similar to neofetch that shows how to use the Next.js API Routes

License

Notifications You must be signed in to change notification settings

emanuelefavero/nextjs-neofetch

Repository files navigation

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

About

This is a Next.js project similar to neofetch that shows how to use the Next.js API Routes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published