Skip to content

A simple Angular 2 project that let you search for an hashtag on Twitter and count who and how many times used that hashtag

License

Notifications You must be signed in to change notification settings

l0ll098/TwitterHashtagsCounter

Repository files navigation

Twitter Hashtags Counter

A simple Angular 2 project that let you search for an hashtag on Twitter and count who and how many times used that hashtag

Demo

Here's a demo version of this application

Deployment

You can download a pre-built version and follow the Server-side setup and deploy the package to your server.

Alternately you can build on your own following this guide.

Get the source code

Server-side setup

  • Open the folder where you have downloaded the source code
  • Rename the file config.template.js to config.js
  • Open that file and replace the placeholder value with the keys generated by Twitter. You can find them in the Application Management page -> Navigate to your app (create a new one if don't already have one) -> Open the "Keys and Access Tokens" section
  • Save the file

Building

Server-side

Client-side

  • Get the source code
  • Enter the client folder and
    • Run npm install
    • Run ng build --prod --aot to build the Angular 2 app
    • Run npm run precache to generate an upadated version of service-worker.js