Skip to content

sriharsha0608/WebTechnologies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebTechnologies

Chat Log

I have created the REST Service using the following

node js and MySQL
.
The database name that I have named is 'chat_log'. I have used HATEOAS principle to design the API. I have used Get to retrieve the chat conversation.

Steps to follow:

  1. Create a new node project using the command
  2. npm init
  3. Install the dependencies
    npm install express mysql
  4. Run the app.js file
    node app.js
  5. The server runs at localhost on port 3000. You can curl it and see the results at http://localhost:3000/messages

Make sure to use your password in app.js file or use this command in your SQL query.
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages