This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "ProjectName", | |
| "version": "0.0.1", | |
| "authors": [ | |
| "Chieh-Wen Yang <dragon.d.firedrake@gmail.com>" | |
| ], | |
| "license": "MIT", | |
| "private": true, | |
| "ignore": [ | |
| "**/.*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // server.js | |
| // Typing node server.js to turn on your Node server. | |
| // include the http module you need | |
| var http = require("http"); | |
| // access the createServer method in the http object | |
| http.createServer(function(request, response) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MariaDB version 10.1 | |
| # Install the MySQL driver: | |
| # gem install mysql2 --no-ri --no-rdoc | |
| # | |
| # Ensure the mysql2 gem is defined in your Gemfile. | |
| # gem 'mysql2' | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 | |
| reconnect: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See https://help.github.com/articles/ignoring-files for more about ignoring files. | |
| # | |
| # If you find yourself ignoring temporary files generated by your text editor | |
| # or operating system, you probably want to add a global ignore instead: | |
| # git config --global core.excludesfile '~/.gitignore_global' | |
| # Ignore bundler config. | |
| /.bundle | |
| # Ignore the default SQLite database. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "projectName", | |
| "description": "project description", | |
| "homepage": "http://", | |
| "keywords": [ | |
| "Node.js", | |
| "express", | |
| "jade", | |
| "AngularJS", | |
| "Browserify", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .DS_Store | |
| *.log | |
| node_modules | |
| build | |
| *.node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # EditorConfig is awesome: http://EditorConfig.org | |
| # EditorConfig helps developers define and maintain consistent | |
| # coding styles between different editors and IDEs | |
| # top-most EditorConfig file | |
| root = true | |
| [*] | |
| indent_style = space | |
| indent_size = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: node_js | |
| node_js: | |
| - '0.10' | |
| - '0.11' | |
| before_install: | |
| - gem update --system | |
| - gem install sass --version 3.2.14 | |
| - gem install compass --version 0.12.3 | |
| - gem install susy --version 1.0.9 | |
| - gem install modular-scale |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var userMgrAPI = express.Router(); | |
| // A set of API to manage users (/apis/admin/user/:username) | |
| userMgrAPI.route('user/:username') | |
| .get(function(req, res) { | |
| // Getting user information | |
| }) | |
| .post(function(req, res) { | |
| // Create a new user | |
| }) | |
| .delete(function(req, res) { |