Coder Social home page Coder Social logo

e-commerce-template-api's Introduction

Market Store App

Summary

This project is a mini e-commerce app for shirts and mugs. It was bootstrapped with create-react-app typescript.

Features

  • users can filter products by two categories mugs/shirts
  • users can filter products by brands
  • users can filter products by tags
  • users can sort products by price (low to high / high to low)
  • users can sort products by date (new to old / old to new)

Installation

To run the app locally

  • clone the repository locally with:
  git clone https://github.com/melowsoft/getir-store
  • cd into project directory with:
  cd getir-store/client
  • Install all dependencies in project directory with:
  npm install

**Note: The Client depends on Json server for fetching data, hence you need to run json-server to serve the client ***

  • To run json-server: first install json-server on your local machine, if you don't have it installed with
  npm install -g json-server

when you have json-server installed, run the following command in the root directory of the project:

  npx json-server --watch db.json --port 5000

to expose the api on port localhost://5000

**Note: json-server should run on a different port from our react app ***

  • Finally you can now cd into the react app and start the app with:
  npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Testing

  • To run test:
  npm run test

Stack

  • React
  • Typescript
  • Redux
  • Json server

e-commerce-template-api's People

Contributors

chukwuma-azubuike 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.