- make a readme.md in the project with description, techs and a link for live (ghpges)
- make some comments and remove console.logs and revise the console for browser if have any errors
- try to make a landing page based on some ideas from https://land-book.com/gallery/landings
- check if have header with link and a good footer with links to the app, about you, github , twitter...
This file contains 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 mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
var assert = require('assert') | |
console.log('\n==========='); | |
console.log(' mongoose version: %s', mongoose.version); | |
console.log('========\n\n'); | |
var dbname = 'testing_geojsonPoint23'; | |
mongoose.connect('localhost', dbname); |
This file contains 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 breeds={'chiuauahua': 0, 'bull terrier': 0, 'bulldog': 0, 'boxer': 0} | |
var questions = [ | |
{ | |
question: "1. What size you like?", | |
answers: ["small","big"], | |
results: { "small":["chiuauahua",'bull terrier'] , "big": ['bulldog','boxer'] } | |
}, | |
{ |
- Install Mongo , for mac use
brew install mongo
. If using OSX Sierra (latest version) try to install manually from https://docs.mongodb.com/v3.0/tutorial/install-mongodb-on-os-x/ - Install a User Interface Admin, MongoHub: https://github.com/jeromelebel/MongoHub-Mac
Create a folder to store the database, so in you console run:
Mac and Linux users:
- sudo mkdir /data
- sudo mkdir /data/db
This file contains 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
<html><body> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$.ajax({ | |
type: "GET", | |
url: "http://cors.io/", | |
data: { | |
u: "https://api.coursera.org/api/courses.v1?q=search&query=Philosophy" | |
} |
This file contains 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
/* | |
* https://github.com/angular-fullstack/generator-angular-fullstack/blob/master/Gruntfile.js | |
* https://docs.strongloop.com/display/public/LB/AngularJS+Grunt+plugin | |
* http://amsterdam.luminis.eu/2014/12/10/improve-my-angularjs-project-with-grunt/ | |
* https://github.com/olov/ng-annotate | |
* https://github.com/mgol/grunt-ng-annotate | |
* https://oclazyload.readme.io/docs | |
https://github.com/strongloop/loopback-example-offline-sync/blob/master/Gruntfile.js |
This file contains 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
[supervisord] | |
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log) | |
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) | |
logfile_backups=10 ; (num of main logfile rotation backups;default 10) | |
loglevel=info ; (log level;default info; others: debug,warn,trace) | |
[program:myapp] | |
command=/usr/bin/node . | |
process_name=%(program_name)s | |
numprocs=1 |
This file contains 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
<VirtualHost *:80> | |
CustomLog /home/myapp/logs/wsgi.log common | |
ErrorLog /home/myapp/logs/error.log | |
LogLevel info | |
DocumentRoot /home/myapp/myclone/client | |
ServerName myapp.com | |
RewriteEngine On | |
# If an existing asset or directory is requested go to it as it is | |
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f |
This file contains 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
<!doctype html> | |
<meta charset="utf-8"> | |
<script src="http://www.d3plus.org/js/d3.js"></script> | |
<script src="http://www.d3plus.org/js/d3plus.js"></script> | |
<div id="viz"></div> | |
<script> |