{"id":23284244,"url":"https://github.com/agilecreativity/jsbdd-bootstrap","last_synced_at":"2025-04-06T15:15:19.958Z","repository":{"id":30206834,"uuid":"33757778","full_name":"agilecreativity/jsbdd-bootstrap","owner":"agilecreativity","description":null,"archived":false,"fork":false,"pushed_at":"2015-04-15T10:05:34.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T05:01:57.620Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agilecreativity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-11T01:17:29.000Z","updated_at":"2015-04-15T10:05:35.000Z","dependencies_parsed_at":"2022-09-05T01:01:02.266Z","dependency_job_id":null,"html_url":"https://github.com/agilecreativity/jsbdd-bootstrap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fjsbdd-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fjsbdd-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fjsbdd-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agilecreativity%2Fjsbdd-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agilecreativity","download_url":"https://codeload.github.com/agilecreativity/jsbdd-bootstrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500477,"owners_count":20948880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-20T01:39:05.341Z","updated_at":"2025-04-06T15:15:19.941Z","avatar_url":"https://github.com/agilecreativity.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## README.md\n\nThe bootstrap script for working with JavaScript and NodeJS in BDD/TDD ways.\n\n### Basic Usage\n\n- Run the initial npm command\n\n```shell\ncd ~/codes\ngit clone git@github.com:agilecreativity/jsbdd-bootstrap.git\ncd ~/codes/jssbdd-bootstrap\nnpm install\n```\n\n### Misc Tips\n\nSince I am using the `nodenv` I usually run the following command first just to\nmake sure that I have everything setup to use the right version.\n\n```\n$nodenv --version\nnodenv 0.3.3\n\n$node --version\nv0.10.37\n```\n\nI want to make sure that I use the latest version of node\n\n```shell\n$nodenv --versions\n```\n\nWhich gives\n\n```shell\nv0.10\nv0.10.28\nv0.10.31\nv0.10.37\nv0.12\nv0.12.0\nv0.12.2\nv0.6\nv0.6.20\nv0.8\nv0.8.26\n```\n\nTo install the latest version of node\n\n```shell\n$nodenv install v0.12.2\n$nodenv rehash\n\n$nodenv global v0.12.2\n$nodenv rehash\n\n# set our local version to the same if needed\n$nodenv local v0.12.2\n$nodenv rehash\n```\n\nThe will generate the `package.json` which we can use to manage the dependency\nfor the project. This will generate the `package.json` file\n\n```shell\n$npm install mocha chai sinon sinon-chai coffee-script --save-dev\n```\n\n- Create the proper `.gitignore` file for the project\n\nTips I am using the command line that generated using [gitignore.io](http://www.gitignore.io)\n\ne.g. `gi` service to create ignore file for a particular project type.\n\ne.g. `gi node \u003e .gitignore` which will produce the content like this\n\n```\n# Created by https://www.gitignore.io\n\n### Node ###\n# Logs\nlogs\n*.log\n\n# Runtime data\npids\n*.pid\n*.seed\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n\n# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (http://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directory\n# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git\nnode_modules\n```\n\n- Now install the `npm` modules for our testing\n\n```\nnpm install chai sinon sinon-chai mocha --save-dev\n```\n\n- Now we need to generate the `package.json` using the `npm init` command\n\n### Once the setup is done we can\n\n```shell\nnpm run-script watch\n```\n\n### TODOs\n\nMocha comes with all of the following:\n\n```\nbefore\nbeforeEach\nafter\nafterEach\n```\n\n- Use `grunt` for managing project\n```\nnpm install -g grunt-cli\n#...\nnpm install\ngrunt init:dev build:dev\ngrun test:server\n```\n\n- Use `brunch` to managing the project\n\n### Links \u0026 Resources\n\n- [Mocha](http://mochajs.org/) - the official Mocha site\n- [CoffeeScript tutorials from TutsPlus](http://code.tutsplus.com/categories/coffeescript)\n- [More Mocha and CoffeeScript testings from TutsPlus](http://code.tutsplus.com/tutorials/better-coffeescript-testing-with-mocha--net-24696)\n- http://www.maori.geek.nz/post/testing_promises_in_node_js_with_mocha_chai_and_sinon\n\n### Books\n- [Web Development with MongoDB and Node.js](http://kroltech.com/2014/02/node-js-testing-with-mocha-chai-sinon-proxyquire/#.VSiqcWSqqko)\n- [Learning Behavior-Driven-Development with JavaScript - Packtpub - 2015](http://packtpub.com/)\n- http://webapplog.com/test-driven-development-in-node-js-with-mocha/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fjsbdd-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagilecreativity%2Fjsbdd-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagilecreativity%2Fjsbdd-bootstrap/lists"}