http://socialsentimental-analysis.herokuapp.com/
API Link : https://2uoffcsokj.execute-api.us-east-1.amazonaws.com/development
Body Parameter:
{
"hashtag": "telstra",
}
Request URL: https://2uoffcsokj.execute-api.us-east-1.amazonaws.com/development/tweet-data?hashtag=telstra
Response:
{
"HashTag": "#Telstra",
“Date/Time”: “2021-06-21 17:39:38”,
"Name": "David White",
“Screen Name”: “david0102”,
"Sex": "Male",
“Location”: “Australia”
“Description”: “I love Telstra products and
services”,
“Sentiment”: “Positive”
}
- Clone the repository.
- Navigate to the 'app' directory.
- Run command :
npm init - Install dependencies :
npm install express request ejs --save - Install and use nodemon :
npm install --save-dev nodemon - In the package.json file, add
"start": "nodemon app.js"underscripts
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon index.js"
},
- Run the file using the command :
npm start - Test the API on http://localhost:3000/