Code Monkey home page Code Monkey logo

wpcodevo / nextjs13-simple-app Goto Github PK

View Code? Open in Web Editor NEW
26.0 2.0 7.0 72 KB

In this article, you will learn how to build a fullstack application in the new Next.js 13 app directory. Next.js 13.2 introduced a new approach to building APIs in the App Router (app), where we can create custom request handlers for a given route using the Web Request and Response APIs.

Home Page: https://codevoweb.com/build-a-simple-frontend-app-in-nextjs13-app-directory/

Makefile 1.20% JavaScript 3.95% TypeScript 93.52% CSS 1.33%
nextjs nextjs13 prisma prisma-orm restful-api simple-api sqlite

nextjs13-simple-app's Introduction

1. Build a Simple API in Next.js 13 App Directory

In this article, you will learn how to build a basic RESTful API in the new Next.js 13 app directory. Next.js 13.2 introduced a new approach to building APIs in the App Router (app), where we can create custom request handlers for a given route using the Web Request and Response APIs.

Build a Simple API in Next.js 13 App Directory

Topics Covered

  • Run the API Project on your Machine
  • Setup the Next.js 13 Project
  • Database Migration with Prisma ORM
  • Initialize the Prisma Client
  • Create the CRUD API in Next.js 13 Route Handlers
    • Handle GET and POST Requests
    • Handle GET, PATCH, and DELETE Requests
  • Test the CRUD API
    • Add a Feedback Item
    • Get a Feedback Item
    • Edit a Feedback Item
    • Fetch All the Feedback Items
    • Delete a Feedback Item
  • Conclusion

Read the entire article here: https://codevoweb.com/build-a-simple-api-in-next-js-13-app-directory/

2. Build a Simple Frontend App in Next.js 13 App Directory

In this tutorial, you'll learn how to create a frontend application in the new Next.js 13 app directory. Specifically, we'll be building a feedback application that allows users to create and delete feedback.

Build a Simple Frontend App in Next.js 13 App Directory

Topics Covered

  • Run the Full-Stack Next.js 13 Project Locally
  • Testing the Feedback Application
  • Install Dependencies and Configure Tailwind CSS
  • Create the HTTP Request Functions
  • Setup Application State with Zustand
  • Create the Client-Side Components - Create the Rating Component - Create the Statistics Component - Create the Form Component - Create the Feedback Item Component - Create the Feedback List Component - Group the Client-Side Components Together
  • Render the Feedback Components in a Server-Side File
  • Conclusion

Read the entire article here: https://codevoweb.com/build-a-simple-frontend-app-in-nextjs13-app-directory/

nextjs13-simple-app's People

Contributors

wpcodevo 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

Watchers

 avatar  avatar

nextjs13-simple-app's Issues

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.