Giter Site home page Giter Site logo

ecommerce-back-end's Introduction

E-Commerce Back End

Back end for an e-commerce site with a configured working Express.js API to use Sequelize to interact with a MySQL database. Walkthrough Video here.

Table of Contents

General Information

Given a functional Express.js API, the user is able to connect to a database using Sequelize once the database name, MySQL usernames, and MySQL password are added to an environment file. When schema and seed commands are entered, a development database is created and is seeded with test data. When the user enters the command to invoke the application in the terminal, the server is started and the Sequelize models are synced to the MySQL database. The API GET routes for categories, products, or tags can all be opened in Insomnia which also the data for each of these routes is displayed in a formatted JSON. The API POST, PUT, and DELETE routes can be tested in Insomnia and data can be successfully created, updated, and deleted in the database.

Technologies Used

  • Express.js
  • Sequelize
  • MySQL
  • dotenv
  • Nodemon

Features

  • GET all or one product, tag, or category with all of its data.
  • POST, PUT, and DELETE products, tags, or categories succesfully performing CRUD operations using Sequelize models.
  • Awesome feature 3

Screenshots

Example screenshot

Setup

In order to get started with the project, the user must add the database name and MySQL username and password in the .env file. In the terminal, use the commands to invoke MySQL, seed the database with test data, and run the application.

Usage

npm i

mysql -u root -p

SOURCE db/schema.sql;

npm run seed

npm run start or npm run watch to use Nodemon

Project Status

Project is: in progress.

Acknowledgements

  • Many thanks to my instructor, Michael Pacheco, the TAs, Nirav and Julius, tutor Dane Shrewsbury, and all the AskBCS learning assistants.

Contact

Created by Kristine Kim. Feel free to contact me at [email protected]!

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.