Git Product home page Git Product logo

grocery's Introduction

Grocery

Grocery app ##Idea App used for cashier in stores, supermarkets that calculate and manage the products from the store. ###Updating Authentication (sign in and log in ) users, Heroku hosting, UX-UI of the app. Profile for each users. ###Technologies used: ReactJS, MongoDB,Express, mongoose, Flux, NPM, bower, gulp, Skeleton bootstap ##Usage Instructions

#To run the app

Make sure mongodb is running in the background. Install global dependencies with :npm install -g gulp bower react-tools browserify Install dependencies with npm install and bower install Run app with gulp serve(type : gulp serve) Open browser: localhost:3000

#Dispatcher

A simple emitter. Object register with the emitter to listen for an event, and when the event occurs, the objects are notified. Something tells the dispatcher it wants to listen for an event with a command called register or on. Here is an example:

exampleDispatcher.on('app-start',function(){alert("Hello")});
`setTimeout(function(){exampleDispatcher.emit('app-start')},1000);` // hello

The dispatcher's on or register function will either take two arguments, or take one argument and return a promise. The first argument is a string called the type of the listener. The type is basically the name of the event, like sound-done or button-clicked. The second argument, or the promise returned, is resolve every time the event occurs. Note that some promise architectures do not allow promises to be resolved more than once. To avoid this confusion, it is recommended that you use a callback. It is important to understand dispatcher are just a loose set of architecture rules and there are no hard and fast requirements.

#Store

A utility that listens for particular kind of dispatcher events and is responsible for the handling of one element. For example, in an Address Book app, you would have a Contacts store. Stores fire change events, allow consumers to listen for change events, and allows direct interaction with the elements in the store. A contact store might, for example, have a function to add, edit or delete contacts that can be used by various components in your app. Stores usually contain a local copy of the database or part of the database, to allow for instant response to user interaction. Stores will then negotiate the update with a long-term storage solution in a custom manner.

#State

A React component's state. A component can change it's own state, but not the state of other components. In order to change the state of another component, an app must make the appropriate request to a store.

#Props

The properties of a React component. A component cannot change its own properties. The properties of a React component can only be set by its parent. In order to change the props of a component which is not the child of the caller, a request must be passed to the appropriate store.

#JSX

A React-specific variant of JavaScript. JSX can be compiled into JavaScript code containing React components. JSX must be compiled as it cannot be read by web browsers.

#JSX Transformer

A tool used to transform JSX without any backend. Can be used in the browser. Not used for production.

#Reactify

A useful Browserify plugin which compiles JSX in to JavaScript as it is being browserified. #MongoDb Install Mongodb : MongoDB
#Isomorphic app : The future of the web development. This app is "isomorphic".

grocery's People

Contributors

hiejulia avatar

Stargazers

 avatar

Watchers

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