Skip to content

"Next Choco" is a web application for an online chocolate store built using the Next.js framework. This project demonstrates various features and best practices for building modern web applications with React and Next.js. Technologies Used: JavaScript, React, Next.js, CSS Modules, Context API, SWR

Notifications You must be signed in to change notification settings

olgatenison/next-choco

Repository files navigation

Choco Shop Next project

site prew

next-choco is a web application for an online chocolate store built with Next.js framework.

Technologies Used

  • Next.js: A React framework for building server-side rendered and statically generated applications.
  • React: A JavaScript library for building user interfaces.
  • CSS Modules: Local scoping of CSS by default in Next.js.
  • Context API: For managing global state across the app.
  • SWR: React Hooks library for data fetching.
  • JavaScript: Programming language used for client-side and server-side logic.

site map

Implemented Features

  • Routing: Static and dynamic routing, including grouping folders and infinite dynamic pages.
  • Pages and Layouts: Creation of various pages and layout files affecting all subfolders.
  • Components and Properties: Writing reusable components with methods, passing attributes, and looping through lists.
  • State Management: Using useState for managing component state.
  • CSS Styling: Global CSS and component/module CSS.
  • Event Handling: Handling button clicks and informing parent components of updates.
  • Client vs Server Rendering: Rendering pages on both client and server.
  • Data Fetching: Fetching data on both client and server, utilizing SWR for client-side data fetching.
  • Context Handling: Sharing state across the app using Context API.
  • Next.js Components: Utilizing Link, Image, Head, Script components provided by Next.js.
  • API Creation: Creating APIs with route.js for AJAX calls.

site map context

Project Structure

The project follows a standard Next.js project structure:

  • pages: Contains all the page components.
  • components: Contains reusable UI components.
  • app: Contains context and services used across the app.
  • styles: Contains global CSS files.
  • public: Contains static assets like images and fonts.
  • data: Contains JSON data for products and reviews.

site page

How to Run

  1. Clone this repository: git clone https://github.com/olgatenison/next-choco.git
  2. Install dependencies: npm install
  3. Run the development server: npm run dev

This project, including design and execution, was skillfully crafted by Olga Tenison under the invaluable mentorship of Matthias Bruch.

This project uses Montserrat and Marcellus SC from Google Fonts.

About

"Next Choco" is a web application for an online chocolate store built using the Next.js framework. This project demonstrates various features and best practices for building modern web applications with React and Next.js. Technologies Used: JavaScript, React, Next.js, CSS Modules, Context API, SWR

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published