How to pass value from one screen to another in Nodejs project?

40 views
Skip to first unread message

Sebastian M Cheung

unread,
Aug 6, 2015, 12:04:19 PM8/6/15
to nodejs
AlsoI created a simple test.js file inside NodeJS project, not sure where to start

I would also like to create app as per attached, with form validation and dropdown from JSON file
, once submitted, creates a new MongodB data row 

Also how to run test.js just by itself. Is there a REPL ?
Screen Shot 2015-08-06 at 10.55.34.png
Screen Shot 2015-08-06 at 10.55.56.png

Ryan Schmidt

unread,
Aug 7, 2015, 1:00:30 AM8/7/15
to nod...@googlegroups.com

On Aug 6, 2015, at 5:04 AM, Sebastian M Cheung wrote:

> AlsoI created a simple test.js file inside NodeJS project, not sure where to start
>
> I would also like to create app as per attached, with form validation and dropdown from JSON file
> , once submitted, creates a new MongodB data row

Are you writing all the code yourself, or are you making use of any npm modules? If so, which ones? If you're not using it already, you may want to start with a web framework like expressjs.

> Also how to run test.js just by itself. Is there a REPL ?

Yes, there is a repl. To start it, just run "node" (with no arguments).

Alan Joseph

unread,
Aug 7, 2015, 1:00:30 AM8/7/15
to nodejs
Hi Sebastian,

If I understand your query correctly, you must be searching for how to do automated test cases for your application. There are many test frameworks available for NodeJS like Jest(https://github.com/facebook/jest) , Mocha (https://mochajs.org/) or Headless browsers eg. PhantomJS (http://phantomjs.org/)

Thank you
Alan
Reply all
Reply to author
Forward
0 new messages