https://github.com/sajjadalis/twitter-media-gallery
Twitter Gallery (based on Vue 2) is using Twitter Official API to fetch media (photos and videos) from a Twitter Profile and then display it in a masonry gallery layout.
You will need to create an app in Twitter Developer Portal and get Bearer Token.
- Search Photos
- Search Videos
- Preview Large Image or Video in Lightbox
- Play Video in ArtPlayer or Native HTML5 Player
- Open Image in New Tab for Full View, Save Image, Zoom-in, Zoom-out, Rotate
- Developer access to Twitter API
- Node.js for development & build
- Create an App in Twitter Developer Portal
- Generate Bearer Token
- Clone the Repository
- Add Bearer Token in
.env
file. e.g.VUE_APP_TWITTER_TOKEN=YourTokenHere.....
- Run
npm install
oryarn add
in Terminal to add all dependencies - Run
npm run serve
oryarn serve
for Compiles and hot-reload for development - Run
npm run build
oryarn build
for Compiles and minifies for production