Skip to content

The goal of this project is to enhance my frontend development skills using Next.js, tailwindCss and TypeScript, with a focus on server components and their iterations. This project provides an opportunity to explore new approaches to solving technical challenges, particularly in consuming GraphQL APIs.

License

Notifications You must be signed in to change notification settings

EriveltoSilva/frontend-challenge-ecommerce

 
 

Repository files navigation

frontend challenge - Capputeeno 💻

Welcome! This repository contains my solution for Rocketseat´s open source Frontend Challenge.

Protótipo

next typescript TailwindCss

Content:

AboutChallenges RequirementsUtils LinksInstallationPrerequisitesRunning the API (Backend)Running FrontendResultsCollaboratorsLicense

🧠 About

The goal of this project is to enhance my frontend development skills using Next.js, tailwindCss and TypeScript, with a focus on server components and their iterations. This project provides an opportunity to explore new approaches to solving technical challenges, particularly in consuming GraphQL APIs.

The challenge is to implement an e-commerce platform for selling mugs and t-shirts, featuring the following functionalities:

  • Product catalog with pagination
  • Filter products by category
  • Search by product name
  • Add and remove products from cart
  • Checkout

📋 Challenges Requirements

  • Follow this prototype
  • Use Next.js and Typescript
  • Create components with styled-components (I made it with TailwindCss)
  • consume from the provided GraphQL API
  1. Challenge Figma
  2. Project Original Challenge

🖥️ Installation

This section describes how to run the project locally.

Pre-requisites

Here you list all prerequisites necessary for running your project. For example:

  • NodeJS
  • npm
  • TypeScript
  • Git

Running the API (Backend)

  1. Clone this repo
git clone https://github.com/EriveltoSilva/frontend-challenge-ecommerce.git
  1. Go to the API folder
cd frontend-challenge
cd api
  1. Install dependencies
npm install
  1. Run start
npm start
  1. Opening GraphiQL in Web Browser with url (optional):
http://localhost:3333/
  1. You can see all api products typing in GraphiQL (optional):
query{
  allProducts{
    id
    name
    description
    price_in_cents
    image_url
    sales
    created_at
    category
  }
  _allProductsMeta {
    count
  }
}

Running Frontend

  1. Clone this repo
git clone https://github.com/EriveltoSilva/frontend-challenge-ecommerce.git
  1. Go to the project folder
cd frontend-challenge
  1. Install dependencies
npm install
  1. Copy .env.example to .env.local file
cp .env.example .env.local
  1. Run Frontend
npm run dev

📌 Results

Product Detail Page Ordering list Cart page

🤝 Collaborators

Special thank you for all people that contributed for this project.

Erivelto Silva Profile Picture
Erivelto Silva

📓 License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

The goal of this project is to enhance my frontend development skills using Next.js, tailwindCss and TypeScript, with a focus on server components and their iterations. This project provides an opportunity to explore new approaches to solving technical challenges, particularly in consuming GraphQL APIs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 90.8%
  • JavaScript 6.9%
  • CSS 2.3%