Skip to content

naive attempt at using Backbone.js for a single page web app Client + SSR render (what Remix does)

Notifications You must be signed in to change notification settings

nosretep/Backbone.js-Node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backbone.js-Node.js

Prototype one page web app, with RESTful API server, that also renders HTML at the client.

http://nodejs.org/

http://expressjs.com/

http://requirejs.org/

http://backbonejs.org/

http://www.mongodb.org/

Install libraries ...

npm install # looks to package.json ...

Mandatory configs

export HOST= # for example localhost:8888
export PORT= # for example 8888
export FACEBOOK_APP_ID= # app requires Facebook connect
export FACEBOOK_APP_SECRET= # app requires Facebook connect
export DB_DOMAIN= # mongodb domain/ip
export DB_PORT= # mongodb port
export DB_USERNAME= # mongodb username
export DB_PASSWORD= # mongodb password

Run server with 'local' configuration ...

node server.js --config local # serving different /config/{config}.json file as /js/config.json ...

Compress and minify and wrap up for deployment or distribution ...

grunt -config local # packaging /config/{config}.json file as /js/config.json ...

Run server for testing distribution files (after grunt) ...

node server.js --dist true

About

naive attempt at using Backbone.js for a single page web app Client + SSR render (what Remix does)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages