testjsmvc
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Test javascriptmvc framework
Intent:  Test javascriptmvc project
Goal: working Receipt tutorial based on git fork
DateCreated: 2011.07.25
DateLast: 2011.07.25 

Resources:
WEB: http://js.testjsmvc/
FILE: C:\Users\ChrisT\workspace\testjsmvc
DOC: http://javascriptmvc.com/docs.html#&search=core
Contribute: https://github.com/jupiterjs/javascriptmvc/blob/master/README

>>>>>STEP 1
Setup local environment for files and web
Create a dir testjsmvc
Create this README on local Windows7 FS
C:\Users\ChrisT\workspace\testjsmvc>ls
README

Setup testjsmvc dir and pointed local server http://js.testjsmvc/

   DocumentRoot "C:\Users\ChrisT\workspace\testjsmvc"
   ServerName js.testjsmvc
   
       Options Indexes MultiViews FollowSymLinks
       AllowOverride All
       Order allow,deny
       Allow from all
   

hosts
127.0.0.1 js.testjsmvc # javascriptmvc testing

>>>>>STEP 1 - TEST
Browse to - http://js.testjsmvc/README
See this README
<<<<<<<<<<<<<<<<<
>>>>>STEP 2 - A: 1 - 6 Source Setup
<<<<<<<<<<<<<<<<<
Setup git repo and suck in jsmvc
Create new repo on git called testjsmvc
https://github.com/christrees/testjsmvc

C:\Users\ChrisT\workspace\testjsmvc>git init

C:\Users\ChrisT\workspace\testjsmvc>git submodule add git@github.com:christrees/steal.git steal
Cloning into steal...
Enter passphrase for key '/c/Users/ChrisT/.ssh/id_rsa':
remote: Counting objects: 3908, done.
remote: Compressing objects: 100% (1436/1436), done.
remote: Total 3908 (delta 2338), reused 3823 (delta 2263)
Receiving objects: 100% (3908/3908), 19.42 MiB | 602 KiB/s, done.
Resolving deltas: 100% (2338/2338), done.
warning: LF will be replaced by CRLF in .gitmodules.
The file will have its original line endings in your working directory.

C:\Users\ChrisT\workspace\testjsmvc>git submodule add git@github.com:christrees/jquerymx.git jquery
Cloning into jquery...
Enter passphrase for key '/c/Users/ChrisT/.ssh/id_rsa':
remote: Counting objects: 6865, done.
remote: Compressing objects: 100% (2316/2316), done.
remote: Total 6865 (delta 4275), reused 6715 (delta 4162)
Receiving objects: 100% (6865/6865), 1.40 MiB | 510 KiB/s, done.
Resolving deltas: 100% (4275/4275), done.
warning: LF will be replaced by CRLF in .gitmodules.
The file will have its original line endings in your working directory.

C:\Users\ChrisT\workspace\testjsmvc>git submodule add git@github.com:christrees/funcunit.git funcunit
Cloning into funcunit...
Enter passphrase for key '/c/Users/ChrisT/.ssh/id_rsa':
remote: Counting objects: 2829, done.
remote: Compressing objects: 100% (1192/1192), done.
remote: Total 2829 (delta 1724), reused 2630 (delta 1527)
Receiving objects: 100% (2829/2829), 61.69 MiB | 401 KiB/s, done.
Resolving deltas: 100% (1724/1724), done.
warning: LF will be replaced by CRLF in .gitmodules.
The file will have its original line endings in your working directory.

C:\Users\ChrisT\workspace\testjsmvc>git submodule add git@github.com:christrees/documentjs.git documentjs
Cloning into documentjs...
Enter passphrase for key '/c/Users/ChrisT/.ssh/id_rsa':
remote: Counting objects: 1481, done.
remote: Compressing objects: 100% (577/577), done.
remote: Total 1481 (delta 957), reused 1383 (delta 883)
Receiving objects: 100% (1481/1481), 1.86 MiB | 200 KiB/s, done.
Resolving deltas: 100% (957/957), done.
warning: LF will be replaced by CRLF in .gitmodules.
The file will have its original line endings in your working directory.

C:\Users\ChrisT\workspace\testjsmvc>ls
README  documentjs  funcunit  git  jquery  steal

C:\Users\ChrisT\workspace\testjsmvc>git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached ..." to unstage)
#
#       new file:   .gitmodules
#       new file:   README
#       new file:   documentjs
#       new file:   funcunit
#       new file:   git
#       new file:   jquery
#       new file:   steal
#

C:\Users\ChrisT\workspace\testjsmvc>git add .
C:\Users\ChrisT\workspace\testjsmvc>git commit -m "first commit"
[master (root-commit) a04d9dc] first commit
warning: LF will be replaced by CRLF in .gitmodules.
The file will have its original line endings in your working directory.
 6 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100644 .gitmodules
 create mode 100644 README
 create mode 160000 documentjs
 create mode 160000 funcunit
 create mode 100644 git
 create mode 160000 jquery
 create mode 160000 steal
 
C:\Users\ChrisT\workspace\testjsmvc>git remote add origin git@github.com:christrees/testjsmvc.git

C:\Users\ChrisT\workspace\testjsmvc>git push origin master
Enter passphrase for key '/c/Users/ChrisT/.ssh/id_rsa':
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 822 bytes, done.
Total 5 (delta 0), reused 0 (delta 0)
To git@github.com:christrees/testjsmvc.git
 * [new branch]      master -> master
 
 C:\Users\ChrisT\workspace\testjsmvc>git status
# On branch master
nothing to commit (working directory clean)

C:\Users\ChrisT\workspace\testjsmvc>ls
README  documentjs  funcunit  git  jquery  steal

>>>>> UPDATE this README FILE
 
 C:\Users\ChrisT\workspace\testjsmvc>git status
# On branch master
# Changes not staged for commit:
#   (use "git add ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working directory)
#
#       modified:   README
#
no changes added to commit (use "git add" and/or "git commit -a")

C:\Users\ChrisT\workspace\testjsmvc>git add .

C:\Users\ChrisT\workspace\testjsmvc>git status
# On branch master
# Changes to be committed:
#   (use "git reset HEAD ..." to unstage)
#
#       modified:   README
#

C:\Users\ChrisT\workspace\testjsmvc>git commit -m "Update README before creating first app"
[master e1431a0] Update README before creating first app
 1 files changed, 130 insertions(+), 19 deletions(-)
 rewrite README (64%)

C:\Users\ChrisT\workspace\testjsmvc>git push

<<<<<<<<<<<<<<<<<
>>>>>STEP 2 - TEST
<<<<<<<<<<<<<<<<<
Verify files
C:\Users\ChrisT\workspace\testjsmvc>ls
README  documentjs  funcunit  git  jquery  steal
Verify local website README
http://js.testjsmvc/README
Verify github README
https://github.com/christrees/testjsmvc

<<<<<<<<<<<<<<<<<
>>>>>STEP 3 - B: 1 - 3 App Gen
<<<<<<<<<<<<<<<<<
C:\Users\ChrisT\workspace\testjsmvc>js steal\generate\app cookbook
'js' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\ChrisT\workspace\testjsmvc>ls
README  documentjs  funcunit  git  jquery  steal

>>>>>BUG:1 BEGIN
./js steal/generate/app cookbook for LINUX
js steal\generate\app cookbook for Windows
.....BUT
OH... the scripts are missing... well I'll pull them in from C:\Users\ChrisT\workspace\javascriptmvc-3.1.0.zip
AND put my standard .gitignore in so netbeans can put it's mess in
<<<<ls -alu
total 50
drwxr-xr-x  7 ChrisT Administrators 4096 Jul 25 09:59 .
drwxr-xr-x 27 ChrisT Administrators 8192 Jul 23 22:56 ..
drwxr-xr-x  7 ChrisT Administrators 4096 Jul 25 09:38 .git
-rw-r--r--  1 ChrisT Administrators  499 Jul 25 09:55 .gitignore
-rw-r--r--  1 ChrisT Administrators  337 Jul 25 09:19 .gitmodules
-rw-r--r--  1 ChrisT Administrators 7053 Jul 25 09:37 README
drwxr-xr-x  9 ChrisT Administrators 4096 Jul 25 09:19 documentjs
drwxr-xr-x 12 ChrisT Administrators 8192 Jul 25 09:18 funcunit
-rw-r--r--  1 ChrisT Administrators    0 Jul 25 09:19 git
drwxr-xr-x 14 ChrisT Administrators 4096 Jul 25 09:15 jquery
-rwxr-xr-x  1 ChrisT Administrators 1996 Apr 27 03:09 js
-rwxr-xr-x  1 ChrisT Administrators 2352 Apr 27 03:09 js.bat
drwxr-xr-x 14 ChrisT Administrators 4096 Jul 25 09:14 steal

C:\Users\ChrisT\workspace\testjsmvc>js steal\generate\app cookbook
      cookbook/cookbook.css
      cookbook/cookbook.html
      cookbook/cookbook.js
      cookbook/docs
      cookbook/resources
      cookbook/resources/example.coffee
      cookbook/resources/example.js
      cookbook/resources/example.less
      cookbook/scripts
      cookbook/scripts/build.html
      cookbook/scripts/build.js
      cookbook/scripts/clean.js
      cookbook/test

C:\Users\ChrisT\workspace\testjsmvc>ls
README  cookbook  documentjs  funcunit  git  jquery  js  js.bat  steal

>>>>>BUG:2 BEGIN
./js steal/generate/scaffold Cookbook.Models.Recipe
js steal\generate\scaffold Cookbook.Models.Recipe
...OH... seems that steal does NOT HAVE a scaffold, but jquery does try that
C:\Users\ChrisT\workspace\testjsmvc>js jquery\generate\scaffold Cookbook.Models.Recipe
! Error: folder cookbook/models does not exist!

...OH... lets nuke cookbook just use the jquery and not steal
<<<<js jquery\generate\app cookbook
      cookbook/cookbook.css
      cookbook/cookbook.html
      cookbook/cookbook.js
      cookbook/controllers
      cookbook/docs
      cookbook/fixtures
      cookbook/funcunit.html
      cookbook/models
      cookbook/qunit.html
      cookbook/resources
      cookbook/scripts
      cookbook/scripts/build.html
      cookbook/scripts/build.js
      cookbook/scripts/clean.js
      cookbook/scripts/docs.js
      cookbook/test
      cookbook/test/funcunit
      cookbook/test/funcunit/cookbook_test.js
      cookbook/test/funcunit/funcunit.js
      cookbook/test/qunit
      cookbook/test/qunit/cookbook_test.js
      cookbook/test/qunit/qunit.js
      cookbook/views

C:\Users\ChrisT\workspace\testjsmvc>js jquery\generate\scaffold Cookbook.Models.Recipe
      cookbook/controllers
      cookbook/controllers/recipe_controller.js
      cookbook/fixtures
      cookbook/fixtures/recipes.json.get
      cookbook/models
      cookbook/models/recipe.js
      cookbook/test
      cookbook/test/funcunit
      cookbook/test/funcunit/recipe_controller_test.js
      cookbook/test/qunit
      cookbook/test/qunit/recipe_test.js
      cookbook/views
      cookbook/views/recipe
      cookbook/views/recipe/edit.ejs
      cookbook/views/recipe/init.ejs
      cookbook/views/recipe/list.ejs
      cookbook/views/recipe/show.ejs

FIRE UP NETBEANS and EDIT cookbook/cookbook.js add the last two lines
steal(	
	'jquery/controller',        // a widget factory
	'jquery/controller/subscribe',	// subscribe to OpenAjax.hub
	'jquery/view/ejs',          // client side templates
	'jquery/controller/view',   // lookup views with the controller's name
	'jquery/model',             // Ajax wrappers
	'jquery/dom/fixture',       // simulated Ajax requests
	'jquery/dom/form_params')   // form data helper
	
	.then('./cookbook.css')     // loads styles
        .models('recipe')           // Added after recipe generate <<<<<<<<<<<<<>>>>BUG:3 BEGIN
...The mod in the documentation does not work... so I tried this..
steal(	
	'jquery/controller',        // a widget factory
	'jquery/controller/subscribe',	// subscribe to OpenAjax.hub
	'jquery/view/ejs',          // client side templates
	'jquery/controller/view',   // lookup views with the controller's name
	'jquery/model',             // Ajax wrappers
	'jquery/dom/fixture',       // simulated Ajax requests
	'jquery/dom/form_params')   // form data helper
	
	.then('./cookbook.css',     // loads styles
              './models/recipe',    // added after gen recipe
              './controllers/recipe_controller')  // added after gen recipe
... and THAT didn't work
DIGG ON FORUMS... randomly and ran onto
http://forum.javascriptmvc.com/#topic/32525000000590273
Basically changes to steal effect stuff...
 Brian_Moschel  POST
1) js jquery\generate\app cookbook
2) js jquery\generate\scaffold Cookbook.Models.Recipe
3) add .then('./controllers/recipe_controller.js', './models/recipe.js') to cookbook.js
WORKS...
<<<<>>>GIT save
C:\Users\ChrisT\workspace\testjsmvc>git status
# On branch master
# Untracked files:
#   (use "git add ..." to include in what will be committed)
#
#       .gitignore
#       cookbook/
#       js
#       js.bat
nothing added to commit but untracked files present (use "git add" to track)

C:\Users\ChrisT\workspace\testjsmvc>git add .
C:\Users\ChrisT\workspace\testjsmvc>git status
# On branch master
# Changes to be committed:
#   (use "git reset HEAD ..." to unstage)
#
#       new file:   .gitignore
#       new file:   cookbook/controllers/recipe_controller.js
#       new file:   cookbook/cookbook.css
#       new file:   cookbook/cookbook.html
#       new file:   cookbook/cookbook.js
#       new file:   cookbook/fixtures/recipes.json.get
#       new file:   cookbook/funcunit.html
#       new file:   cookbook/models/recipe.js
#       new file:   cookbook/qunit.html
#       new file:   cookbook/scripts/build.html
#       new file:   cookbook/scripts/build.js
#       new file:   cookbook/scripts/clean.js
#       new file:   cookbook/scripts/docs.js
#       new file:   cookbook/test/funcunit/cookbook_test.js
#       new file:   cookbook/test/funcunit/funcunit.js
#       new file:   cookbook/test/funcunit/recipe_controller_test.js
#       new file:   cookbook/test/qunit/cookbook_test.js
#       new file:   cookbook/test/qunit/qunit.js
#       new file:   cookbook/test/qunit/recipe_test.js
#       new file:   cookbook/views/recipe/edit.ejs
#       new file:   cookbook/views/recipe/init.ejs
#       new file:   cookbook/views/recipe/list.ejs
#       new file:   cookbook/views/recipe/show.ejs
#       new file:   js
#       new file:   js.bat
#

C:\Users\ChrisT\workspace\testjsmvc>git commit -m "Update END Step 1"
[master 69909ad] Update END Step 1
 25 files changed, 645 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 cookbook/controllers/recipe_controller.js
 create mode 100644 cookbook/cookbook.css
 create mode 100644 cookbook/cookbook.html
 create mode 100644 cookbook/cookbook.js
 create mode 100644 cookbook/fixtures/recipes.json.get
 create mode 100644 cookbook/funcunit.html
 create mode 100644 cookbook/models/recipe.js
 create mode 100644 cookbook/qunit.html
 create mode 100644 cookbook/scripts/build.html
 create mode 100644 cookbook/scripts/build.js
 create mode 100644 cookbook/scripts/clean.js
 create mode 100644 cookbook/scripts/docs.js
 create mode 100644 cookbook/test/funcunit/cookbook_test.js
 create mode 100644 cookbook/test/funcunit/funcunit.js
 create mode 100644 cookbook/test/funcunit/recipe_controller_test.js
 create mode 100644 cookbook/test/qunit/cookbook_test.js
 create mode 100644 cookbook/test/qunit/qunit.js
 create mode 100644 cookbook/test/qunit/recipe_test.js
 create mode 100644 cookbook/views/recipe/edit.ejs
 create mode 100644 cookbook/views/recipe/init.ejs
 create mode 100644 cookbook/views/recipe/list.ejs
 create mode 100644 cookbook/views/recipe/show.ejs
 create mode 100644 js
 create mode 100644 js.bat

C:\Users\ChrisT\workspace\testjsmvc>git push
Enter passphrase for key '/c/Users/ChrisT/.ssh/id_rsa':
Counting objects: 42, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (40/40), 11.14 KiB, done.
Total 40 (delta 3), reused 0 (delta 0)
To git@github.com:christrees/testjsmvc.git
   e1431a0..69909ad  master -> master

<<<<<<<<<<<<<<<<<
>>>>>STEP 3 - TEST B: 4
<<<<<<<<<<<<<<<<<
Browse to http://js.testjsmvc/cookbook/cookbook.html
Should see the standard Reciept app

'Well my comment on the git commit was wrong... it was End STEP 3
'Heck lets add a git tag...
http://jasonswett.net/blog/a-git-tag-example-that-doesnt-suck/
http://progit.org/book/ch2-10.html

C:\Users\ChrisT\workspace\testjsmvc>git tag -a step3 -m "step 3 working"
C:\Users\ChrisT\workspace\testjsmvc>git tag
step3

C:\Users\ChrisT\workspace\testjsmvc>git push origin --tags
Enter passphrase for key '/c/Users/ChrisT/.ssh/id_rsa':
Counting objects: 1, done.
Writing objects: 100% (1/1), 159 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)
To git@github.com:christrees/testjsmvc.git
 * [new tag]         step3 -> step3

C:\Users\ChrisT\workspace\testjsmvc>

<<<<<<<<<<<<<<<<<
>>>>>STEP 4 - B: 5 Functional Test
<<<<<<<<<<<<<<<<<

<<<<<<<<<<<<<<<<<
>>>>>STEP 4 - TEST B: 6 - 7
<<<<<<<<<<<<<<<<<

<<<<<<<<<<<<<<<<<
>>>>>STEP 5 - B: 8 Unit Test
<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<
>>>>>STEP 5 - TEST B: 9 - 10
<<<<<<<<<<<<<<<<<

<<<<<<<<<<<<<<<<<
>>>>>STEP 6 - B: 11 Compress for Production 
<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<
>>>>>STEP 6 - TEST B: 12
<<<<<<<<<<<<<<<<<

<<<<<<<<<<<<<<<<<
>>>>>STEP 7 - B: 13 Create Documents 
<<<<<<<<<<<<<<<<<
<<<<<<<<<<<<<<<<<
>>>>>STEP 7 - TEST B: 14
<<<<<<<<<<<<<<<<<

	
	
>>>>>BUG:4 BEGIN
<<<<>>>>BUG:5 BEGIN
<<<<>>>>BUG:6 BEGIN
<<<<>>>>BUG:7 BEGIN
<<<<>>>>BUG:8 BEGIN
<<<<>>>>BUG:9 BEGIN
<<<<  
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。