Code Monkey home page Code Monkey logo

simple_items_list_example's Introduction

Please first of all run npm i to install dependencies(some of them are auto generated and not needed for now).

I've already set some data at DB. You can change it as You wish. But i didn't attache scripts for DB generation. There several products with same name - it isn't error. I run script for db several times.

Use node bin/www to run project. To change configuration look into "config.js".

I found that some problems can be with http://lorempixel.com, so if You don't see images, please change links in DB to any other 250*250 image.

Pagination is custom(as chalange says), how it works You can find in comments in controls/products.js. I tried to write comments for all important code.

Folders:

  • bin - folder where run file is placed, also cluster node.js module can be placed here to run application in multi-process mode(proxy should be done).
  • controls - folder with url handlers
  • error - folder with custom error
  • libs - folder with some staff
  • logs - folder with log file, wasn't attached
  • middleware - folder with custom middlewares
  • models - folder with mongoose schemas
  • public - folder with static files
  • routes - folder with url route and express.route
  • views - folder with templates

simple_items_list_example's People

Contributors

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