btford / angular-express-blog Goto Github PK
View Code? Open in Web Editor NEWExample AngularJS app using an Express + Node.js backend.
Example AngularJS app using an Express + Node.js backend.
(5) (https://github.com/btford/angular-express-blog.git doesn't work either)
after npm install and trying to running web server and it wont let running
not sure if the express is old version.
$ node api.js
module.js:338
throw err;
^
Error: Cannot find module 'C:\Users\Brian\Documents\GitHub\angular-express-blog\api.js'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
What cause is that?
The demo Url: http://ang-exp-blog.briantford.com/
Failing to load/add blog posts.
Error got in the console:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://ang-exp-blog.briantford.com/api/posts
Hello,
I was wondering if there's a license for this project? MIT? BSD? Apache Commons perhaps?
Thank you!
module.js:340
throw err;
^
Error: Cannot find module '/var/www/html/angular-express-mongoose-seed/app.js'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:935:3
Hi There! and thanks for taking the time!
I am really fresh in angulaJS therefore I couldn't find a solution for these bugs. There are two bugs, I was able to find the solution for the first one but not for the second
First try to run the seed in IE (mine is IE8) and you will get this:
The problem are the quotes in public/js/controllers.js (there aren't)
Unfortunately that is not the end, after fixing that you got another extrange error and I have no idea about this one :(, look:
Any idea????
Also you blog post has the same problems/errors: http://briantford.com/blog/angular-express.html, but that doesn't change the fact that is really useful.
The world could be better without Internet Explorer IE, I know! but no matter what I have to deliver professionally to all browsers :S
Thanks!
idon't want to use jade ,just use HTML ,how can i do ?
angular-express-seed has been updated; this should follow suit.
Hi Brian!
First of all thank you for this wonderful example. I've been studying AngularJS for a bit now and have a general idea of how it all works, and also have experience with Express, Jade and Node... but I'm getting a bit tangled up in the flow of how things work with this example. I think the fact that Express and Angular can both handle routes (and they are in this example?), and there are http requests pointing to those URLs, all seem to be a little confusing to me.
Would you please explain briefly what happens in the background when you go through this process regarding Express, Angular and the various http requests:
I think this would be a huge benefit to anyone learning these frameworks. Thanks!
body-parser deprecated bodyParser: use individual json/urlencoded middlewares ap
p.js:28:9
body-parser deprecated undefined extended: provide extended option node_modules
body-parser\index.js:105:29
C:\Users\AbdulMalik\Desktop\btford-angular-express-seed-50ba978\btford-angular-e
xpress-seed-50ba978\node_modules\express\lib\express.js:89
throw new Error('Most middleware (like ' + name + ') is no longer bundled
with Express and must be installed separately. Please see https://github.com/sen
chalabs/connect#middleware.');
^
Error: Most middleware (like errorHandler) is no longer bundled with Express and
must be installed separately. Please see https://github.com/senchalabs/connect#
middleware.
at Function.Object.defineProperty.get (C:\Users\AbdulMalik\Desktop\btford-an
gular-express-seed-50ba978\btford-angular-express-seed-50ba978\node_modules\expr
ess\lib\express.js:89:13)
at Object. (C:\Users\AbdulMalik\Desktop\btford-angular-express-se
ed-50ba978\btford-angular-express-seed-50ba978\app.js:36:18)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
Using the example http://briantford.com/blog/angular-express.html I'm not able to multiline blog post.
\n obviously doesn't work
gets escaped by jade.
What I had to do (ugly) was to explode the text in an array of lines and for each line print a
{{line}}
.any better solution? is it the right one?
Hi, Brain. I have read your post "http://briantford.com/blog/angular-express". In first section, you forgot add html(ng-app="myApp") to index.jade.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.