Giter Club home page Giter Club logo

e-commerce-back-end's Introduction

E-Commerce Back End
License: MIT

Description

In this deployed application, the user is able to log products and view categories of these products, as well as their tags. When the user makes a post request, they can add to the products, categories, and tags, as well as view them using a get request. The user can also make put requests for the products and delete whichever product, category, or tag they'd like. The purpose of this application is make it easy for a user to track their products, categories, and tags for their online store.

Please view deployed site here.

When you run a GET request with the url/api/:yourCategory on Insomnia, you are presented with data from the api seeded data.

picture of a successful get request for categories

To create a new entry, use the POST request and, using the correct variables, enter a new product, category, or tag.

image of a successful post request to the tags, with the tag_name of vivid

If you need to update a product, category, or tag, use a PUT request to the url/api/:yourCategory/:id, the id being the one of that which you'd like to update.

successful put request for category with the id of 3 to category_name of sweatpants. There is a [ 1 ] indicating that there was 1 entry updated

Lastly, to delete an entry, go to the corresponding url/api/:yourCategory/:id and send a DELETE request. The entry with the id in the category that you entered into the URL will be deleted.

successful delete request for product with the id of 5

Table of Contents

Installation

Run npm i to install express, dotenv, mysql2, and sequelize.

Usage

This app must be run on a server an using an app such as Insomnia or Postman to create POST and PUT requests.

Contributing

Tests

License

This project is licensed under MIT.

Questions

Here is a link to my GitHub or shoot me an email.

e-commerce-back-end's People

Contributors

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