- Install Homebrew (if not already installed):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- Install required tools:
| /** | |
| * jQuery plugin that turn a json object into a bootstrap form | |
| * use: | |
| * $('#form-container').jsonFormer({ | |
| * title: "Just point me at a div and pass me an object", | |
| * jsonObject: JSON.parse(editor.getValue()); | |
| * }); | |
| * | |
| * Make changes in the form and then call | |
| * var newObj = $('#form-container').jsonFormer('formData'); |
| .box { | |
| width: 100%; | |
| height: 200px; | |
| background: #0B0D2C; | |
| position: relative; | |
| } | |
| .box:before, | |
| .box:after { | |
| content: ''; |
| .element { | |
| position: relative; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } |
| /** | |
| * Module dependencies | |
| */ | |
| var express = require('express'); | |
| var fs = require('fs'); | |
| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| // img path |