cklanac
8/24/2017 - 4:27 PM

shell script to generate the syllabus

shell script to generate the syllabus

# Execute the following using VS Code CodeRunner extentions 
# Or simply Copy and paste the relevent sections into bash

# set COHORT environment variable 
COHORT=cohort-meta/cohort-2017-06-12.yaml
echo "" > output.md 

# node generator/generator.js master-syllabus/00-pre-course-reading.md    $COHORT 2 1 >> output.md

: <<'END'
node generator/generator.js master-syllabus/01-git-js-review.md         $COHORT 2 1 >> output.md
node generator/generator.js master-syllabus/02-scope-loops-arrays.md    $COHORT 2 2 >> output.md
node generator/generator.js master-syllabus/03-objects.md               $COHORT 2 3 >> output.md
node generator/generator.js master-syllabus/04-jquery.md                $COHORT 2 4 >> output.md
node generator/generator.js master-syllabus/05-client-side-arch.md      $COHORT 2 5 >> output.md

node generator/generator.js master-syllabus/06-quiz-app-i.md            $COHORT 2 1 >> output.md
node generator/generator.js master-syllabus/07-quiz-app-ii.md           $COHORT 2 2 >> output.md
node generator/generator.js master-syllabus/08-apis-and-ajax.md         $COHORT 2 3 >> output.md
node generator/generator.js master-syllabus/09-api-capstone-1.md        $COHORT 2 4 >> output.md
node generator/generator.js master-syllabus/10-api-capstone-2.md        $COHORT 2 5 >> output.md
END

node generator/generator.js master-syllabus/11-node-express.md          $COHORT 3 1 >> output.md
node generator/generator.js master-syllabus/12-express-middleware.md    $COHORT 3 2 >> output.md
node generator/generator.js master-syllabus/13-restful-apis.md          $COHORT 3 3 >> output.md
node generator/generator.js master-syllabus/14-promises-fetch.md        $COHORT 3 4 >> output.md
node generator/generator.js master-syllabus/15-mocha-chai.md            $COHORT 3 5 >> output.md

node generator/generator.js master-syllabus/16-postgres.md              $COHORT 4 1 >> output.md
node generator/generator.js master-syllabus/17-knex.md                  $COHORT 4 2 >> output.md
node generator/generator.js master-syllabus/18-backend-review.md        $COHORT 4 3 >> output.md
node generator/generator.js master-syllabus/19-todomvc-backend.md       $COHORT 4 4 >> output.md
node generator/generator.js master-syllabus/20-todomvc-backend.md       $COHORT 4 5 >> output.md

node generator/generator.js master-syllabus/21-mongodb.md               $COHORT 5 1 >> output.md
node generator/generator.js master-syllabus/22-mongoose.md              $COHORT 5 2 >> output.md
node generator/generator.js master-syllabus/23-testing-mongo.md         $COHORT 5 3 >> output.md
node generator/generator.js master-syllabus/24-basic-auth.md            $COHORT 5 4 >> output.md
node generator/generator.js master-syllabus/25-testing-auth.md          $COHORT 5 5 >> output.md

node generator/generator.js master-syllabus/26-restful-api-project.md   $COHORT 6 1 >> output.md
node generator/generator.js master-syllabus/27-restful-api-project.md   $COHORT 6 2 >> output.md
node generator/generator.js master-syllabus/28-restful-api-project.md   $COHORT 6 3 >> output.md
node generator/generator.js master-syllabus/29-restful-api-project.md   $COHORT 6 4 >> output.md
node generator/generator.js master-syllabus/30-restful-api-project.md   $COHORT 6 5 >> output.md