This is a demo project for creating statically-rendered tweets using Next.js, Tailwind CSS, and Twitter's API.
For more details, follow along in the corresponding blog post here.
First, you will need to set up a Twitter developer account and obtain API credentials at developer.twitter.com.
Then, set up a Bearer token as an environment variable named TWITTER_TOKEN
. The code will reference this variable to fetch tweet data.
Now, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the demo.
For more details, refer to the complete tutorial at https://ikartik.co/code/static-tweets.