Code Monkey home page Code Monkey logo

meteor-meme-share-demo's Introduction

Meme Share Demo

Meteor app example.

1.0 Explain meteor packages

  • Add bootstrap (meteor add twbs:bootstrap)
  • Add stylus (meteor add stylus)
  • Create client > templates > first templates

2.0 Start with Collections

  • Create collections folder
  • Declare posts collection
  • More elaborated posts data
  • Add (meteor add fortawesome:fontawesome)
  • Update post item template
  • Create posts fixture for DB
  • Run meteor on a known db (MONGO_URL=mongodb://localhost:27017/memeapp meteor)
  • See posts in console (Posts.find().fetch();)
  • Update helpers for posts list
  • Remove autopublish, insecure

3.0 Publications and Subscriptions

  • Remove posts data from posts_list helper, update date on fixtures
  • Create publications file and publish posts
  • Touch main.js file and add temporary subscription
  • Add ( meteor add momentjs:moment )
  • Reset DB ( db.dropDatabase() )
  • Create post item helpers to support date fromNow
  • Add post directly on mongo to see reactivity

4.0 Routing and Users

  • Add (meteor add iron:router)
  • Add (meteor add accounts-password)
  • Restructure main.html only with head and create layout.html
  • Create our router.js file and define our layoutTemplate
  • Do first route for home Router.route('',{})
  • configure loadingTemplate and notFoundTemplate
  • waitOn posts, remove subscription on main.js
  • reset db, add comments count to fixture
  • Do comments collection
  • Add users and comments to fixture
  • Do postPage route, update postItem template
  • Do postPage template and helpers for date and comments
  • Add hook Router.onBeforeAction('dataNotFound', {only: 'postPage'});

5.0 More reactivity

  • Meteor Methods, create events when clicking stars

meteor-meme-share-demo's People

Watchers

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