These are chat archives for Deadarius/SugoiOverflow

7th
Mar 2015
Deadarius
@Deadarius
Mar 07 2015 08:47
Update: use "gulp dev" to run server and serve public files
after running "gulp dev" static files will be served as root and api is available on /api route
Please keep in mind that it serves folder "build" which is build by gulp on each change of files
jackyzhen
@jackyzhen
Mar 07 2015 11:48

{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }

js-bson: Failed to load c++ bson extension, using pure JS version
body-parser deprecated bodyParser: use individual json/urlencoded middlewares se
rver\index.js:69:9
body-parser deprecated undefined extended: provide extended option node_modules\
body-parser\index.js:85:29

I get that when i gulp dev with latest
http://localhost:8085/api/questions/ 404 (Not Found) on questions page
jackyzhen
@jackyzhen
Mar 07 2015 12:13
ok i tried something funny to fix wiz-markdown
and bower init it properly
and registered it with bower under sugoi-mark-down
Deadarius
@Deadarius
Mar 07 2015 12:27
lol
Well done, that will work for now
Regarding all thwe warnings - ignore it, we just have to get it working for now
I built most of the backend now
Still few more things missing
If someone can take header and implement proper angular controller for it - would be great
Giang - please style add question page when you have a chance
Also search on header can be done using /api/questions/search/:terms
terms can be separated by space or %20
Sandy987
@Sandy987
Mar 07 2015 22:00
I'll do the site header controller now
Deadarius
@Deadarius
Mar 07 2015 22:36
Nice. Please don't touch profile page though
Sandy987
@Sandy987
Mar 07 2015 22:54
I've made my changes. However, I can't get the app running on my machine?
Deadarius
@Deadarius
Mar 07 2015 23:14
what happens?
Sandy987
@Sandy987
Mar 07 2015 23:24
I run gulp dev, same warnings as jacky. But when i navigate to the app, all api calls are 404'd
wait
i'm running off of gulp connect...i should be running off iisnode right?
woops
let me install IIS lol
Deadarius
@Deadarius
Mar 07 2015 23:45
nonono
nononoonononoon
don't touch gulp connect
and no need in iis
just run gulp dev
then navigate to localhost:3000
try calling localhost:3000/api/questions
does it 404?
Deadarius
@Deadarius
Mar 07 2015 23:51
also pull and npm install