- Node.js 6.x Blueprints
- Fernando Monteiro
- 227字
- 2021-07-14 10:35:01
Running the application and adding comments
Now it's time to test whether everything is working properly:
- Open terminal/shell at the root project folder and type the following command:
npm start
- Check your browser at:
http://localhost:3000
. - Go to
http://localhost:3000/signup
and create a user calledJohn Doe
with the e-mail ID asjohn@doe.com
and password as123456
. - Go to
http://localhost:3000/comments
, click on the create comment button and add the following content:Title: Sample Title Comments: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- The following screenshot illustrates the final result:
Comments screen
Checking the error messages
Now let's check the flash-connect messages. Go to http://localhost:3000/login
and try to log in as a user; we will use martin@tech.com
with password 123
.
The following screenshot illustrates the result:

Error message on the login screen
Now we try to sign up with an already registered user. Go to http://localhost:3000/signup
and place the following content:
name: John Doe email: john@doe.com password: 123456
This screenshot illustrates the result:

Error message on signup screen
推薦閱讀
- Git Version Control Cookbook
- Apache Oozie Essentials
- Learn Programming in Python with Cody Jackson
- TypeScript圖形渲染實戰:基于WebGL的3D架構與實現
- 深度學習:算法入門與Keras編程實踐
- 劍指MySQL:架構、調優與運維
- Nginx實戰:基于Lua語言的配置、開發與架構詳解
- HTML 5與CSS 3權威指南(第3版·上冊)
- Java零基礎實戰
- Python機器學習算法與應用
- 官方 Scratch 3.0 編程趣味卡:讓孩子們愛上編程(全彩)
- SSH框架企業級應用實戰
- 軟件測試技術
- Koa與Node.js開發實戰
- H5頁面設計與制作(全彩慕課版·第2版)