/lojademo

Primary LanguageJavaScript

Project logo

React E-commerce

Status GitHub Pull Requests License


Few lines describing your project.

📝 Table of Contents

🧐 About

E-commerce mock application used to train my dev skills.

🏁 Getting Started

Run git clone --branch demo https://github.com/titotiago/lojademo.git.

Prerequisites

Node.js

Installing

In root folder run

npm install
npm start

In '/api/' run

npm start

🎈 Usage

Add your mongoDB credentials in line 24 at 'api/app.js/' Api Routes: GET localhost:5000/products/ : Returns all available products.

GET localhost:5000/product/{key} : Returns a specific product.

DELETE localhost:5000/product/{key} : Deletes a specific product.

POST localhost:5000/products/ : Adds product. (Accepts array)

Post product request format: [{

title: String,

description: String,

value: String,

key: String,

imgUrl: String,

Stock: String

}]

⛏️ Built Using

✍️ Authors

Demo & screenshots

Video

Screenshot3