Skip to content

Refactor vite to nextjs for ability to adapt profile data on server#87

Open
oliCHECK24 wants to merge 5 commits intothtauhid:mainfrom
oliCHECK24:refactor-vite-to-nextjs-for-ability-to-adapt-profile-data-on-server
Open

Refactor vite to nextjs for ability to adapt profile data on server#87
oliCHECK24 wants to merge 5 commits intothtauhid:mainfrom
oliCHECK24:refactor-vite-to-nextjs-for-ability-to-adapt-profile-data-on-server

Conversation

@oliCHECK24
Copy link

Task Overview

The main objective of this task was to create a user-friendly GUI for editing profile data. This involved refactoring the existing Vite application to a Next.js framework to facilitate the creation of APIs that can manage user data effectively.

Reason for Refactoring to Next.js

The refactor from Vite to Next.js was essential for several reasons:

  1. API Route Support: Next.js provides built-in support for API routes, allowing the creation of serverless functions directly within the application. This capability is crucial for handling data operations (such as create, read, update, and delete) seamlessly on the server, enabling efficient data management without the need for an additional backend service.

  2. Server-Side Rendering: Next.js offers server-side rendering (SSR) out of the box, which enhances the performance and SEO of the application. This is particularly beneficial for profile editing, as it ensures that user data is rendered on the server before being sent to the client, resulting in faster load times and better user experience.

  3. Improved Project Structure: The Next.js framework enforces a clear project structure that promotes best practices, making it easier to manage and scale the application. It allows for organized code separation between the client and server logic, which improves maintainability.

  4. Enhanced Features: By transitioning to Next.js, we gain access to additional features like automatic code splitting, image optimization, and built-in routing, which contribute to a more robust and performant application.

Changes Made

  1. Refactored Application:

    • Transitioned the project from Vite to Next.js to leverage its API routes for server-side data management. This refactor enables seamless interaction with the server for editing JSON data.
  2. Developed GUI for User Data Management:

    • Created a graphical user interface that allows users to create and edit their profile information easily. The interface includes:
      • Edit Profile: Users can edit their general information at /edit.
      • Edit Specific Profile: Users can access their specific edit page at /edit/[username].

Key Features

  • User-friendly forms for inputting and updating profile data.
  • Dynamic routing to handle different user profiles.
  • Integration with Next.js API routes for data manipulation.

URLs

  • General Edit Page: /edit
  • User-Specific Edit Page: /edit/[username]

@vercel
Copy link

vercel bot commented Oct 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
terminal-portfolio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 5:35am

@vercel
Copy link

vercel bot commented Oct 12, 2024

@oliCHECK24 is attempting to deploy a commit to the thtauhid's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants