GithubHelp home page GithubHelp logo

olgatenison / next-choco Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 14.91 MB

"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

Home Page: https://next-choco.vercel.app

JavaScript 44.45% CSS 55.55%
css javascript nextjs versel context-api swr

next-choco's Introduction

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.

next-choco's People

Contributors

olgatenison avatar

Stargazers

Matthias Bruch avatar  avatar

Watchers

 avatar  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.