GithubHelp home page GithubHelp logo

nronzel / shopping-cart Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.77 MB

The Odin Project - Shopping Cart project

Home Page: https://keebstore.netlify.app/

License: GNU General Public License v3.0

HTML 1.51% JavaScript 98.49%
chakra-ui react react-router vite vitest

shopping-cart's Introduction

Shopping Cart

badge vite chakra react

VIEW THE SITE

Description

This project was created for The Odin Project shopping cart project in the React section. The intention of this project was to practice utilizing testing in a React application.

The site contains basic functionality. It utilizes React Router to handle the routes. The website itself is simple. Only two pages (landing page & products) with a drawer component for the shopping cart.

I hit a wall pretty quickly with this project as the cirriculum calls to use Creat-React-App and I opted to use Vite instead. This choice quickly backfired as I realized Vite doesn't play nicely with the Jest testing library out of the box. This is apparently due to Vite's plugin system. So instead of dealing with the headache of trying to set up Jest with Vite, I opted for Vitest, which integrates nicely with Vite and allows me to use all of the same selectors, etc, as Jest.

Overall this was a fairly simple project once I figured out how to get testing to work.

Installation

Clone the repo, cd into the directory, and install the dependencies:

git clone https://github.com/nronzel/shopping-cart.git
cd shopping-cart
npm install

Launch the dev server:

npm run dev
# open localhost:5173 in your browser to view the site

Build the production version and launch the preview:

npm run build
npm run preview
# open localhost:4173 in your browser to view the production preview

License

GPL-3.0

Tests

to run the tests in this project:

npm run test

shopping-cart's People

Contributors

nronzel avatar

Stargazers

 avatar

Watchers

 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.