I'm wondering how can I make tests to simulate user interactions in my app.
1.- Should I do it separately? (client side - server side)
2.- In Ember's official web page I notice that they're using Qunit to make his test, Is this the best option? Can i use another one? Can I use this in the server side too?
I have many questions on my head right now, so I hope you can explain it to me, or maybe any helpful link.
Thanks you!
Use Capybara. It can simulate a real user.
Related
To the point, I'm working a React app that has "levels" where users have to completely some tasks before then can move on to the next one. And for obvious reasons I can't use client-side js to verify and advance the user to the next level.
I believe that a server should handle this, but I'm stuck on how to go implementing this. I've tried Googling for this but I'm not sure if I can accurately put this into keywords. Some of my current thoughts:
Render React components of each levels to static html then serve this page when the correct request is made to the server (https://reactjs.org/docs/react-dom-server.html). As my whole app is running client-side now, I'm worried that this will complex things a lot more.
Keep all the components client-side but only return the link (route) to the page if a request is made to the server. This way someone extremely motivated can still see all the pages without completing the tasks.
I believe there should be an obvious answer to this question but since I'm relatively new to React, I'm not sure what it is.
Thanks.
React is a client-side framework. Meaning it is run and rendered in the browser.
When you talk about "the server" you are needing to implement a backend framework (i.e. RoR or Express), this is something you will have to learn independently. There are many tutorials online that are free.
I am just beginning to learn how to use node JS to make a website. In this website I would like to implement an authentication system. Any tips would be appreciated.
Thanks,
Connor
http://passportjs.org
Generally, the way to go especially to start.
https://beta.freecodecamp.org/en/challenges/advanced-node-and-express/set-up-passport May also help you get started with it
I have a node (+express and socket.io) project which runs a server presenting data in html. But i dont want users to go to the specific url or i.p. address. Instead i would like to integrate the node application in an existing webpage. (For example a Wordpress site)
So what would be the best way to integrate a node project into an existing project that is not bulit with Node? Embedding it in an iFrame doesn´t seem optimal ;)
I guess jQuery.load() wont work since it´s not listening for server side changes and the whole point with node goes missing :)
Kind regards
Henrik
I am having a website which has many sections and multiple pages in each section.
There is a feature called "Generate PDF" which will traverse through all the sections and pages one by one and grab the HTML from the browser and then generate its PDF. This is working fine as of now.
But this is holding the user from doing anything until the PDF is generated.
I want to have some help on how I can do the same process in background (on server side) ? I have heard from someone that node-curl may help in this but I am not familiar with that.
Can anyone suggest me some ways to proceed further?
If anyone aware about node-curl and just can give hint that it may help me to resolve the issue then also it will be good. I will learn about it and invest my time to get it done.
Or else if someone came across the same kind of problem and have any idea then it will be good.
I am open to use any npm to get it done.
We are also using EmberJs so if any suggestions on that part then also welcomed.
Thank you.
Do you mean you implemented 'Generate PDF' in your client side emberjs code?
If you are running a nodejs based server, you can use node-curl to grab the HTML from intended URL. It is can be risky and you might end up in similar problem of blocking because nodejs runs on single thread. Better you fork a new process to execute 'Generate PDF' logic on separate thread. For details - https://nodejs.org/api/child_process.html
I would like to write a web application using node.js and Cappuccino. I want to write the back-end in Objective-J, just like the front-end.
Can I use node.js with Objective-J? What is needed to do this?
beeing a professional Objective-J coder I can say it is definitely possible since Objective-J is fully based on JavaScript. But I also have to say that I never tried it.
I think it would be a good idea to directly start a discussion in the official Objective-J Google Group:
http://groups.google.com/group/objectivej
Check out https://bitbucket.org/clbruno/objj-node/overview