This is a ReactJs (Next) Based Web Application developed as a requirement for the completion of Concordia University's COMP-6231 Distributed System Design Course. The Application illustrates the querying of Amazon's DynamoDB with client-side NextJs Application.
The Project uses an open database available here. The dataset contains over 3 million unique tweets about the Top Companies from 2015 to 2020, with their information such as tweet id, author of the tweet, post date, the text body of the tweet, and the number of comments, likes, and retweets of tweets matched with the related company.
Note: The steps assume, you have already created Tweets
table in Amazon DynamoDB with primary_key
as tweet_id
of type Number
.
- Get csv file from Data Source mentioned above.
- Place the csv file in
./data/[here]
with nameTweet.csv
. - Start the project after completing the Setup.
- visit
loclhost:3000/api/seed
, this should trigger a database batch write process.
The Project uses NextJs Framework. In order to run the project, Please ensure you have NodeJs installed on your local machine.
- Copy
.env.example
file to.env
and set you AWS keys. - Create
Tweets
table in Amazon DynamoDB withprimary_key
astweet_id
of typeNumber
. - To Get Started, execute following commands:
yarn install
yarn run dev
- Open http://localhost:3000 with your browser to see the result.
- Team Number: 15
- Pulkit Kakkar - [email protected]
- Bo Wang
- Dinesh Kumar