kchaturvedi / static-tweets

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

Home Page:https://ikartik.com/code/static-tweets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://ikartik.com/code/static-tweets


Languages

Language:JavaScript 98.6%Language:SCSS 1.4%