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

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

主站蜘蛛池模板: 虎林市| 延长县| 仙桃市| 房产| 洪雅县| 浏阳市| 阿勒泰市| 肇庆市| 宁晋县| 光山县| 东安县| 全椒县| 丹巴县| 彭阳县| 宜丰县| 保山市| 富锦市| 泽州县| 宜川县| 普安县| 朔州市| 静海县| 玛纳斯县| 阜城县| 灌南县| 宁国市| 通州区| 根河市| 秦皇岛市| 武邑县| 迁安市| 平陆县| 平顺县| 时尚| 惠州市| 晋城| 荥经县| 宣城市| 个旧市| 常山县| 荆州市|