Code Monkey home page Code Monkey logo

fashionista's Introduction

Fashionista

An e-commerce concept for clothing.

Images of how the pages look like on desktop and mobile

Packages

  • React
  • Redux
  • Redux Thunk
  • Redux Persist
  • React Router

Basics

It looks for products on a database (more info about the API below). Once they are gotten, it allows browse and search for items, pick them, select their sizes and add them to a shopping cart. The quantity of a single item can be increasead or decreased, and the item can be removed.

Routes

/

home page, where the full catalog is displayed.

/produto/:product-name

single product page, where is the full info about an item and the 'add to cart' action.

Folder Structure

 /src
 |   /assets
 |   |   /css
 |   |   |   /...
 |   |   /img
 |   |   |   /...
 |   /components
 |   |   /ComponentName
 |   |   |   /ComponentName.css
 |   |   |   /ComponentName.jsx
 |   |   |   /ComponentName.test.js
 |   |   |   /index.jsx
 |   |   /...
 |   /containers
 |   |   /ContainerName
 |   |   |   /ContainerName.css
 |   |   |   /ContainerName.jsx
 |   |   |   /ContainerName.test.js
 |   |   |   /index.jsx
 |   |   /...
 |   /infrastructure
 |   |   /api.js
 |   |   /api.test.js
 |   /routes
 |   |   /RouteName
 |   |   |   /RouteName.jsx
 |   |   |   /RouteName.test.js
 |   |   |   /index.jsx
 |   |   /...
 |   /store
 |   |   /actions.js
 |   |   /actionTypes.js
 |   |   /index.js
 |   |   /reducer.js
 |   |   /store.test.js
 |   /utils
 |   |   /...
 |   App.css
 |   App.js
 |   App.test.js
 |   data.json
 |   index.js
 |   mocks.js

API

This website used to consume a third party API, making only a single request to get all the necessary data, i.e., the products. But the API is no longer available. Hence, for the sake of simplicity, the data is now gotten from a json file in the /src path, what does not affect this project intent.

Tests

To test the application you can run npm test.

The following modules were used:

  • Jest
  • Jest Dom
  • React Testing Library
  • Redux Mock Store
  • Jest Environment Jsdom Sixteen

fashionista's People

Contributors

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