Skip to content

mmotel/meteorjs-routing-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MeteorJS & Backbone: Routing Demo

Live demo

Go and see live demo at backbone-routing-demo.meteor.com.

Dependencies

You need meteorite to use Atmosphere Smart Packages.

npm install -g meteorite

or

sudo -H npm install -g meteorite

Meteor & Atmosphere packages management

meteor add jquery
meteor add account-ui
meteor add accounts-password
meteor add backbone
mrt add bootstrap-3
meteor remove insecure
meteor remove autopublish

###Application structure

model.js
smart.json
public/
client/
		client.js
		index.html
		styles.css
server/
		server.js		

###Run application

meteor

Routing

When there is selectedUser in url bar address is set into /userName.

For example: backbone-routing-demo.meteor.com/mmotel@test .

When tehre is selectedCategory in url bar address is set into /userName/category_id.

For example: backbone-routing-demo.meteor.com/mmotel@test/txjYRcKAQrwMbenbZ .

Routing is bidirectional what we can see when we click on links above.

About

MeteorJS & Backbone: Routing Demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published