Posts by João Vilaça • 131 points
4 posts
- 
		1 votes3 answers754 viewsA: Access-Control-Allow_origin error not allowedTry adding these headers: header('HTTP/1.1 200' ); header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, WCTrustedToken,… 
- 
		0 votes1 answer399 viewsA: What is the best way to organize a directory for a web project?You can choose a framework and normally when creating a project it will do that work for you, but a good "Boilerplate" would be: app/ styles/ scripts/ views/ home.html etc... assets/ fonts/ imagens/… 
- 
		0 votes1 answer30 viewsA: What is the correct notation to learn creating nodejs, Bower, and other configuration files?You are referring to the JSON (Javascript Object Notation) format. The format is for example this: { "prop": [ 1, 2, 3, 4 ], "prop2": "wow" } You can check if what you wrote is json in… 
- 
		2 votes2 answers368 viewsA: Gulp Sass does not workBesides having to include: var gulp = require('gulp'); You have to use https://www.npmjs.com/package/gulp-sass not Gulp-ruby-Sass. The folder structure is different and so is the interpreter.…