官术网_书友最值得收藏!

Running the application and adding comments

Now it's time to test whether everything is working properly:

  1. Open terminal/shell at the root project folder and type the following command:
    npm start
    
  2. Check your browser at: http://localhost:3000.
  3. Go to http://localhost:3000/signup and create a user called John Doe with the e-mail ID as john@doe.com and password as 123456.
  4. 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. 
    
  5. 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

主站蜘蛛池模板: 沿河| 岳西县| 克山县| 赤壁市| 綦江县| 西昌市| 信阳市| 宁德市| 土默特右旗| 桓台县| 青龙| 睢宁县| 朝阳区| 佛冈县| 舒兰市| 资源县| 嘉定区| 河津市| 柳州市| 宽甸| 绥芬河市| 申扎县| 潜江市| 澄城县| 沧州市| 阳新县| 六安市| 元阳县| 永泰县| 如东县| 正阳县| 新建县| 湘乡市| 禹城市| 兖州市| 雷山县| 特克斯县| 榆树市| 西青区| 赤壁市| 香港 |