I prefer using NodeJS, to acheive the follow flow,
Navigate to a site, find a form, set values, submit form, get the result of submittion (usually redirect), find hrefs there, and navigate to them.
which package is the best documented and supports those?
Thanks!
PhantomJS and CasperJs are great js tools for web scraping, maybe a little difficult to learn.
SpookyJS allows you to run PhantomJS/CasperJS within Nodejs environnement.
Those packages are well documented.
Recently, i discovered an interessting package named nightmare that is 'a high-level browser automation library'.
Here is a link for nightmare
Related
So, I want to apologize ahead of time but I've been googling and stack overflowing for an answer to this question and I just can't find a satisfactory one.
I know that Facebook uses React and, although I don't know what software architecture they use (MVC, Client-Server etc.), I can't see any react files or react components in the dev tools sources tab on any browser.
I'll show you an example in my own react app using create-react-app that shows all my files:
Create-react-apps dev tools sources:
However, when I go to Facebook's page, I don't see anything like that. I see this:
Facebook's dev tools sources:
This isn't only true of react apps, but just node apps I've made as well. Now, I want to know where all of this information is on facebook's page.... Where are the components? Why can't I see them? Where are all the post and get requests being run? How can I put breakpoints in the code for debugging? I mean, I don't even see an HTML page besides the elements tab! And, most importantly, how do I do the same thing to hide my files?
It seems like it adds an extra layer of security that I would think is preferable on all public websites. Once again, thanks in advance and, as far as I know, the answer to this is nowhere near obvious.
I admit, this one little bit confusing when you are quite new on the web development.
You can see your files (source code) via devtool because you also upload your .map files which help map your bundled/minified code into the the original readable one.
However, this is super helpful on development environment, but quite dangerous on production. What you need to do just remove the .map files, as comment suggested.
I know the basics of: html, css, javascript, jquery, and php. Now I want to start making interactive websites. Is there any book or tutorial that starts with all of them being used?
You could start with a common framework, start altering things and build up to developing that framework from scratch. For some php examples, Wordpress is a good option, codeigniter and cake are also good.
If you have a project in mind, you could just start from scratch and as you come along problems that you do not understand how to get around, just google the issue. It will probably bring you back here though.
You could start doing some of the tutorials at codeschool.com or teamtreehouse.com. I am sure there are tons more too!
My recomendation is to you begin to study ways to build an API with PHP beside a mysql or mongo, of course using an framework like laravel or cake. After that you need to integrate this API with a view and i recommend that you study a framework like angular or react. However, see the google search below that may helps you a lot.
https://www.google.com.br/search?sourceid=chrome-psyapi2&ion=1&espv=2&ie=UTF-8&q=angular%20laravel&oq=angular%20laravel&aqs=chrome..69i57j0l5.6098j0j7
I have a template to be rendered with angular and a node js application.
I want to make some kind of require('angular'); from my node application and use it's compile service to compile an email template and send the email with node.
Is this possible? Or is it better to look for other alternatives such as this one http://documentup.com/niftylettuce/node-email-templates
Thanks in advance.
At the moment as far as I know no one has figured out how to correctly render angular templates in node. There has been discussion about it, but I don't know of any working module available. For emails, use one of the many readily available templating libraries (mustache is at least similar in syntax to angular). Angular is really geared toward dynamic, interactive DOM changes which you don't need on the server, so it's generally not that great a fit. Rendering email templates and sending them with node is however very straightforward and there are many good modules available to help with that.
It's a question more of a "Is it possible / What technologies to be applied".
I have a website on domaina.com, I have Chrome extension installed, which can read/modify domain's DOM, the extension, as I understand can be connected via something like https://github.com/substack/node-browserify to NodeJS on the server-side, and then use something like CasperJS for Node to manipulate that very same DOM model and return it.
The mission is to build macros and automation tools for the website, but Node scripts reside on domainb.com
Is this something doable? Can you point to specific packages of Node or documentation of how t o accomplish this?
This question should not raise any arguments, so I think it's ok to post it here.
Thanks for any advice!
Is there a module or similar things that support skinning in NodeJS? I want to build a NodeJS website, and want to be able to re-skin the website as I like without much efforts, like in Wordpress.
Is skinning supported in NodeJS?
If you're interested in building a website in Node.js and don't need a wordpress-style cms behind it, there are few projects that can help you out.
Have you looked into Bootstrap? It's built with less which you can easily plug in to your Express setup (see the guide here, using the command line executable to set up a new project you can specify less like this: express --css less myapp and it will do all the work for you)
In the bootstrap less file are several variables you can use to change the colours, fonts, sizes, etc, and it's also got a lot of helpers for grid layouts and responsive designs.
It even includes a few useful javascript plugins too which make the ui nicer with less work.
There are also a lot of sites with themes and theme generators around which then work on top of bootstrap, and may achieve what you want.
Plugging in this sort of solution (whether bootstrap or other) is about as close as you can come to getting skinning for node; As otherwise suggested if you're looking for a CMS out of the box as well, probably best to look for another platform like Wordpress.
Node.js is not a content management system. It is a platform on top of which you could built a web server with a content management system. To answer your question you need to be looking for node.js based content management systems that support themes.
The only node.js CMS that I am aware of is Calipso. It's still pretty alpha-stage. It may have some theming support, but it is nowhere near as polished as Wordpress.
Also is there a reason why you want to use node.js? I mean there is nothing wrong in using Wordpress for creating a themeable website - it is just awesome for that.
If you just want another OnlineShop, or maybe a blog, i think nodejs is maybe not your right choose as Jed Watson told.
If your requirements are more complicated, and you want a quick and easy implementation of a nice web interface, and you have html, javascript, and css knowledge... I strongly recommend you just trying to work with MEAN.js
It puts together MongoDB Expressjs, AngularJs, and NodeJs.
Use this, for example with a yeoman fullstack constructor and you will have a powerful webapp, with user autentication, and much more in a few minutes.
After that, the use of jade, less, scss, and similar languages of modelling the front, and the easy way you can also model collections in the back, is for me the best combination you´ll find for creating a website today.
Hope it´ll help you
King Regards