Skip to content

CEOehis/ecommerce-shop

Repository files navigation

ECOMMERCE-SHOP

e-commerce application

MVP features

  • Users can see all items when entering the website.
  • Items are displayed properly based on the selected department and category.
  • Users can search items through search box.
  • Support paging if we have too many items.
  • Users can see item details by selecting a specific item.
  • Users can add items to their shopping carts.
  • Users can register/login using website custom forms, or social login libraries.
  • Users can checkout with 3rd party payment gateways: Paypal or Stripe.
  • Users will get confirmations over emails about their orders.

API

API is live at https://ecommerce-turing-core.herokuapp.com/api/v1

API Documentation

API documenntation: https://documenter.getpostman.com/view/5572663/S1ETQwDJ

Run in Postman

Getting started

Prerequisites

In order to install and run this project locally, you would need to have the following installed on you local machine.

Installation

  • Clone this repository
git clone [email protected]/CEOehis/ecommerce-shop.git
  • Navigate to the project directory
cd path/to/ecommerce-shop
  • Run npm install or yarn to instal the projects dependencies
  • create a .env file and copy the contents of the .env.sample file into it and supply the values for each variable
cp .evn.sample .env
  • Create a MySQL database and run the sql file in the database directory to migrate the database
cat ./src/database/database.sql | mysql -u <dbuser> -D <databasename> -p

Stripe Integration

Shopping orders are paid for using a Stripe integration. In order to use the stripe endpoint send a POST request to /api/v1/stripe

You will need to provide a stripeToken. To get the token fill out the form at https://ecommerce-turing-core.herokuapp.com/stripe

About

e-commerce application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published