Giter Club home page Giter Club logo

p-commerce's Introduction

P-Commerce

Prototype Peer2Peer E-commerce Website using Express.js/Node.js/Server-side-rendered React/MongoDB as backend, and JQuery frontend. Features include:

  • basic functionality i.e User Account and Permissions, CRUD on ecommerce related entities
  • automatic saving for the product upload form.
  • arbitrary sub-category definitions
  • multi-group substring search (if name corresponds to category, will display both products from that category and products with substring)
  • real-time chat using socket.io ย - localization by i18 standards & USD/THB currency conversion.
  • product view history and wishlist with no registration required.

Prerequisites

  • NPM 5.6.0
  • MongoDB 3.4.10
  • Mocha 4.0.1

Getting Started

To install, simply run

npm install

Initialize MongoDB

mongod

Run the site.

npm start

Running the tests

Run Mocha to run unit-tests.

mocha

File Structure

  • ./app.js - application initializer, server, server-configurations such as routes, and middleware defined here.
  • ./db.js - interface to the mongo database.
  • ./config.js - various configurations, contains 'drop_create_mock_db' flag which setting to true will drop and create a new database populated with mock data.
  • ./models - business entity definition which provides persistence interface.
  • ./controllers - actions on each route.
  • ./middleware - various modules used as callback in express when a route is access.
  • ./authentication - modules for configuring authentication and permission.
  • ./public - files served to client.
  • ./views - React classes to be rendered in server-side.
  • ./test - unit tests

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • Natcha Simsiri - Initial work

License

This project is used as a showcase, please kindly ask for permission before any kind of usage.

p-commerce's People

Watchers

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