Code Monkey home page Code Monkey logo

ns-e-commerce-back-end's Introduction

E-Commerce-Back-End

License: MIT

About

This is the back end for an e-commerce applicaiton made with Express.js API and Sequelize to communicate with a MySQL database.

Table of Contents

Made-With

  • Sequelize
  • Express.js
  • Node.js
  • ES6
  • MySQL

Additional Insomnia

Install

To install dependencies, run "npm i" or "npm install" in the command line. The user must also create a .env file and add their local MySQL login information to access the database.

Notes

  • Once dependencies have been installed the user must create a .env file and enter thier login information for MySQL to access the database.
  • Access the databse by logging into MySQL in the command line and run 'SOURCE db/schema.sql;' followed by 'USE ecommerce_db;'
  • Once that is complete quit out of MySQL and seed the database by running 'npm run seed' in the command line.
  • When you are ready to access the database run 'npm start' and you will see the message 'Now Listening' in the console.
  • To interact with the database use Insomnia to test CRUD opperations for Category, Product and Tag models. You are able to GET, PUT, POST and DELETE for each model.
  • The routes for each model are:

Video

https://watch.screencastify.com/v/2huEHnC8x0rAeyVs9fzV

Screenshots

GET category by Id

Screen Shot 2022-07-08 at 11 12 40 AM

GET all tags

Screen Shot 2022-07-08 at 11 12 52 AM

POST product

Screen Shot 2022-07-08 at 11 13 09 AM

PUT product

Screen Shot 2022-07-08 at 11 13 19 AM

Liscense

This project is liscensed under the MIT liscense.

Credits

Made by Nina Siegel

Questions

For questions, open a new issue.

To see more of my work visit https://github.com/nmsiegel1/

ns-e-commerce-back-end's People

Contributors

nmsiegel1 avatar

Watchers

 avatar

ns-e-commerce-back-end's Issues

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.