Skip to content

covidarmy/frontend

Repository files navigation

powered-by-vercel

Covid.army - Covid 19 Twitter Resources Aggregator

Covid.army scrapes tweets from Twitter's search page (using Twitter's advanced search feature) and collates them, and showcases all of them in one place with a beautiful user-friendly interface.

Preview Image

Want to contribute? Check the Contributing section.

Get Started

Set the variables in .env.example and move them to .env.local

npm install
npm run dev

Environment Variables

NEXT_PUBLIC_FB_API_KEY=""
NEXT_PUBLIC_FB_APP_ID=""
NEXT_PUBLIC_FB_MEASUREMENT_ID=""
NEXT_PUBLIC_FB_MESSAGING_ID=""
NEXT_PUBLIC_FB_PROJECT_ID=""

Data Models

  1. Tweet & Tweets Document

    type Tweet = {
      tweetId: string
      username: string
      for: Record<string, boolean>
      location: Record<string, boolean>
    }
    
    type Tweets = Record<string, Tweet>
  2. Locations

    type Locations = Record<string, boolean>
  3. Location Resources

    type ResourceTitle = string
    type ResourceURL = string
    type LocationResources = Record<string, Record<ResourceTitle, ResourceURL>>
  4. Resources

    type SearchTerm = string
    
    type Resources = Record<string, SearchTerm>

Contributing

We belive in open source, just as much as you do. Feel free to open a issue or PR.