Code Monkey home page Code Monkey logo

ecommerce-backend's Introduction

ECOMMERCE BACKEND

License:  MIT

Index

  1. Description
  2. Installation
  3. Usage
  4. Features
  5. Contributing
  6. Resources
  7. License

Description

This app is a command-line interface (CLI) with an API (using Express.js) and MySQL database (using Sequelize) that allows the user to view, add, update and delete categories, products and tags.

Installation

Setup:

  • (1) Fork the repo, (2) Clone the forked repo locally, (3) Run "npm install" (to install the dependencies).

Setup the Database Schema:

  • (1) Update or add an .env file. Include the following in the .env file as follows. Note that the .env variables are used in the conf folder, connection.js file.

    • DB_NAME="ecommerce_db"
    • DB_USER=""
    • DB_PASSWORD=""

Seed the Database:

  • Run Server: From the root directory, run either "npm run watch" to start nodeman or "node server.js".

If you'd like to use NPM nodemon as/if you make changes to the code, please install nodemon as a development dependency using "npm install --save-dev nodemon" (see https://www.npmjs.com/package//nodemon).

Usage

This app is a command-line interface (CLI) with an API (using Express.js) and MySQL database (using Sequelize).

Features

This app includes features that allows the user to view, add, update and delete categories, products and tags from the API routes shown in the demo videos.

App Preview - WalkThrough Videos

Video #1:

This video shows - the dotenv, sequelize sync, model associations, models, mysql database connection, source schema, seed model, start server and the code.

Link to Setup Video

In Insomnia, the user tests “GET tags,” “GET Categories,” and “GET All Products.”.

This video shows - the category routes including get all categories, get single category by id, post (add a new category), put (update a category by id), delete a category by id.

Link to Category Video

In Insomnia, the user tests “GET tags,” “GET Categories,” and “GET All Products.”.

This video shows - the product routes including get all products, get single product by id, post (add a new product), put (update a product by id), delete a product by id.

Link to Product Video

In Insomnia, the user tests “GET tags,” “GET Categories,” and “GET All Products.”.

This video shows - the category routes including get all tags, get single tag by id, post (add a new tag), put (update a tag by id), delete a tag by id.

Link to Tag Video

In Insomnia, the user tests “GET tags,” “GET Categories,” and “GET All Products.”.

Tests

No tests at this time.

Contributing

Contributor Covenant Code of Conduct

Contributor Covenant

Resources

  1. Project Manager: Steve Calla - GitHub Profile
  2. GitHub Repo: https://github.com/stevecalla/ecommerce-backend
  3. GitHub Hosted URL: None. This is command-line interface (CLI) using node.js.
  4. Contact: Email Steve

License

License:  MIT This project is licensed under the terms of the The MIT License. Please click on the license badge for more information.

ecommerce-backend's People

Contributors

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