Static Tweets

R
Renaudil y a 2 jours
0

Description

High-performance tweets using Next.js.

npx boilerapp static-tweets

Documentation

Completely customizable static tweet for Next.js applications.

Demo

https://static-tweet.vercel.app/1238918791947522049

How to use

To have a working copy of this project, run the following command:

yarn create next-app static-tweet --example https://github.com/lfades/static-tweet/tree/master

To have full access to all Twitter elements, like videos and polls, you'll need a Twitter API Token, once you have it, copy the .env.local.example file in the root directory to .env.local (which will be ignored by Git):

cp .env.local.example .env.local

Then add your API token to .env.local, it should look like this:

TWITTER_API_TOKEN=...

For polls, make sure that you have Tweets and Users from Twitter Labs enabled for your app. It's required to get access to polls metadata.

Add Static Tweets to Your App

Currently, there's no package to do this, however you're welcome to copy the files and add it to your project!

For an example, take a look at the following blog: rauchg/blog5c:T476,Completely customizable static tweet for Next.js applications.

Demo

https://static-tweet.vercel.app/1238918791947522049

How to use

To have a working copy of this project, run the following command:

yarn create next-app static-tweet --example https://github.com/lfades/static-tweet/tree/master

To have full access to all Twitter elements, like videos and polls, you'll need a Twitter API Token, once you have it, copy the .env.local.example file in the root directory to .env.local (which will be ignored by Git):

cp .env.local.example .env.local

Then add your API token to .env.local, it should look like this:

TWITTER_API_TOKEN=...

For polls, make sure that you have Tweets and Users from Twitter Labs enabled for your app. It's required to get access to polls metadata.

Add Static Tweets to Your App

Currently, there's no package to do this, however you're welcome to copy the files and add it to your project!

For an example, take a look at the following blog: rauchg/blog

Prix

Gratuit

FREE

Commentaires (0)

FAQ

Questions Fréquemment Posées

Vous avez une question ? Nous avons les réponses. Si vous ne trouvez pas ce que vous cherchez, n'hésitez pas à nous contacter.

Boilerapp est une plateforme communautaire dédiée au partage de boilerplates, de starter kits et de modèles de projets pour développeurs. Notre objectif est simple : vous faire gagner du temps sur la configuration initiale (setup) pour que vous puissiez coder ce qui compte vraiment. Que vous cherchiez une simple base de code ou un projet SaaS complet, vous le trouverez ici.

Vous avez d'autres questions ?

Notre équipe est là pour vous aider. Contactez-nous et nous vous répondrons dès que possible.