Giter VIP home page Giter VIP logo

e-commerce-database's Introduction

E-Commerce-Database

Secure back-end Sequelize database managing commercial products

Description

This project integrates an API into a database with fully functioning C.R.U.D. operations, thus acting as a fully functional database for an e-commerce environment. With a tool such as this, a business owner could manage and keep track of their products and services.

Table of Contents

Installation

To run this back-end database, please clone this repository locally to your machine.

  1. Be sure to install Node.js version 16 and run npm i in the root folder to install MySQL2, dotenv, Express, Nodemon, and Sequelize packages.
  2. Create and adjust a .env file with environment variables to match the MySQL login config file.
  3. In the terminal's root folder, initialize MySQL with mysql -u root -p (or mysql -uroot if you do not use a password) to log into MySQL.
  4. Create the database with source db/schema.sql then quit from MySQL.
  5. Seed the database with information with npm run seed then turn on the server with npm run watch.
  6. Follow the given API routes to view, add, update, or delete information!

Usage

After opening the port locally to localhost:3001/api, open an API client such as Insomnia or Postman to navigate through different the different routes available, which are /categories, /products, and /tags.

See demonstration of how it works here!

Contribution

No contributions at this time, thank you for your interest.

Tests

No testing provided at this time.

Contact

Credits

Documentation referenced:

  • Mozilla Development Network
  • Stack Overflow forums
  • Sequelize

Tools used:

Tutor(s):

U. Penn Bootcamp instructor(s):

U. Penn Bootcamp study groups:

License

MIT

License

e-commerce-database's People

Contributors

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