Git Product home page Git Product logo

e-com-back-end's Introduction

Mod Squad Back End for E-Commerce

Back-end Summary

This back end, consisting of a Node.js app and a mongo database, receives calls from and sends data to a front end store. Most data requires a user to sign-in to access including adding items to a cart, modifying that cart, placing orders, and viewing past orders. Most data is serialized to restrict access to unnecessary or snesative data. A user does not be signed in, however, to view items for sale on the site. The app uses stripe for it's payment process in order to keep data secure.

Technologies Utilized:

  • Node.js
  • Express
  • MongoDB
  • Mongoose
  • Javascript
  • Json
  • Curl
  • Heroku
  • Git
  • mLab
  • Stripe

Database Collections:

  • /products (catalogue)
  • /items (card)
  • /orders (order history)
  • /users

Routes

// standards RESTful routes .resources('items') .resources('products', {only: ['index', 'show']}) .resources('orders', {only: ['index','show','create']}) .resources('charges', {only: ['index', 'show', 'create']})

// users of the app have special requirements .post('/sign-up', 'users#signup') .post('/sign-in', 'users#signin') .delete('/sign-out/:id', 'users#signout') .patch('/change-password/:id', 'users#changepw') .resources('users', { only: ['index', 'show'] })

User Stories

  • A user can sign-up
  • A user can sign-in
  • A user can change-password
  • A user can sign-out
  • Anyone can view products
  • A user can add items to cart
  • A user can view items in cart
  • A user can change item quantity in cart
  • A user can remove items from cart
  • A user can submit an order
  • A user can pay for an order
  • A user can view past orders

Future Improvements

Given more time it might be good to see if any unnecessary or unsecure data is being sent to the front end. If so, it would be good to add additional serialization to prevent that type of data from being sent.

e-com-back-end's People

Contributors

zandragen avatar ielole avatar

Watchers

James Cloos avatar Adam Kadane 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.