Twitter Media Gallery (based on Vue 3 + Vite + Tailwind CSS + Express backend) is using Twitter Official API to fetch media (photos and videos) from a Twitter User timeline or Hashtag(s)/Keyword search and then display it in a masonry gallery layout.
[Demo Preview]: Coming Soon
You will need to create an app in Twitter Developer Portal and get Bearer Token.
If you prefer to do it manually with the cleaner git history
npx degit sajjadalis/twitter-media-gallery twitter-media-gallery
cd twitter-media-gallery
npm install
When you clone this, try follow the checklist to update your info properly
.env.sample
to .env
in backend\
folder.backend\.env
file. e.g. TWITTER_TOKEN="YourTokenHere"
Note: Make sure to use .env.sample
file from backend\
and NOT the one in the root. That .env
file is for Vite/Vue front-end only.
Backend Express Server
npm start
Vite Server
npm run dev
To build, run
npm run build
CORS proxy replaced with Express backend since Heroku is no longer a free service where CORS proxy was hosted.So Express server must be running for it to work. It's better for security and no longer exposes Twitter API token in build.