Skip to content

Create statically-rendered tweets using Next.js, Tailwind CSS, and Twitter's API

Notifications You must be signed in to change notification settings

kchaturvedi/static-tweets

Repository files navigation

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.

Getting Started

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.

About

Create statically-rendered tweets using Next.js, Tailwind CSS, and Twitter's API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published