g5l / accordion-challenge

Accordion Challenge

Home Page:https://accordion-challenge-qlry.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accordion Challenge

Welcome to the Accordion Challenge project. This repository contains a Next.js based web application to showcase an profile tasks widget component UI

desktop mobile

Overview

  • Framework: Next.js
  • Language: TypeScript
  • Styling: Styled-Components

Prerequisites

  • Node.js v14+ (v20.6.0 preferred for types)
  • npm (packaged with Node.js)

Setup & Installation

  1. Clone this repository.
     git clone [repo-link]
    
  2. Navigate into the project directory.
     cd accordion-challenge
    
  3. Install the necessary packages.
     npm install
    

Available Scripts

In the project directory, you can run:

  • Development Mode

    npm run dev
    

    Runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.

  • Production Build

    npm run build
    

    Builds the app for production to the .next folder. This optimizes React code for the best performance.

  • Start Production Server

    npm run start
    

    Starts the application in production mode. This requires build to have been run first.

  • Lint

    npm run lint
    

    Analyze your codebase using eslint and reports linting errors.

Project Structure

  • api

    The Api layer to communicate the application with external server

  • components

    To reuse and organize better parts of the application

    Folder pattern:

      index.ts              - To export the component
      Component.tsx         - Component code
      style.tsx             - Component style
      types.ts (if needed)  - Component types
    
  • pages

    Main application pages (Pages Router)

  • app

    The app router

  • service

    Maintain the company's rules, and it can use the API layer or other service

  • styles

    Maintain the global style

  • types

    Maintain the global types

Technologies & Packages

Here's a quick overview of the main technologies and packages used:

  • Core:
    • Next.js - A React framework.
    • React - A JavaScript library for building user interfaces.
    • TypeScript - Superset of JavaScript with static type definitions.
  • Styling:
  • Utilities:
    • uuid - Library to generate unique identifiers.
  • Linting:
    • ESLint - Tool for identifying and reporting on patterns found in ECMAScript/JavaScript code.

Todo list

Missing features

  • Create global variables to reuse it on component's style file

About

Accordion Challenge

https://accordion-challenge-qlry.vercel.app/


Languages

Language:TypeScript 97.1%Language:CSS 1.7%Language:JavaScript 1.2%