Giter Club home page Giter Club logo

rwt-next-short-task's Introduction


Next.js Custom Authentication and Multistep Form with Chakra UI

Welcome to our Next.js application! Below you'll find instructions on how to set up and use the application.

Task Overview

This application is designed to accomplish the following tasks:

  1. Create a Next.js application from scratch and implement custom authentication (login).
  2. Implement user authentication using next-auth with static credentials.
  3. Create a session based on authentication.
  4. Implement a multistep form for creating ads, following the given UI design.
  5. Use Chakra UI for UI development.
  6. Ensure responsiveness.
  7. Validate user inputs.
  8. Use TypeScript for the codebase.
  9. Use ESLint for linting.
  10. Implement session expiration after 1 hour.
  11. Have only two pages: Login Page and Create Ad Page.

Getting Started

Prerequisites

Make sure you have Node.js and npm installed on your system.

Installation

  1. Clone this repository:

    git clone <repository-url>
  2. Navigate to the project directory:

    cd <project-directory>
  3. Install dependencies:

    npm install

Usage

  1. Run the development server:

    npm run dev
  2. Access the application in your browser:

    http://localhost:3000
    

Usage Guidelines

  1. Login Page: Use the provided static credentials ([email protected] and admin) to log in. Validate user inputs.
  2. Create Ad Page: After logging in, you'll be directed to the Create Ad Page. Follow the multistep form as described below:
    • Step 1: Basic Information
    • Step 2: Upload Images (up to 5 images, each not more than 2MB)
    • Step 3: Review all steps. Ensure validation for all steps.
  3. Session Expiration: The session will expire after 1 hour of inactivity.
  4. Single Page Application: The application follows a single-page architecture using Next.js routing.
  5. Codebase: TypeScript is used for the codebase, and ESLint is configured for linting.

rwt-next-short-task's People

Watchers

Alaa Hijazi 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.