A node.js project intergrating Twitter API
To get a local copy up and running follow these simple example steps.
Ensure that you have Node.js installed.
This project uses Twitter API. Follow this guide to register your app and get a set of keys to authenticate your API calls.
-
Make sure you got access to the Twitter API here and have registred yor app.
-
Clone the repo
git clone https://github.com/sam959/tweeter.git
-
Install NPM packages
npm install
-
Create an
.env
file in the root of the project, and write there your API key as follows:BEARER_TOKEN = 'ENTER YOUR API KEY';
Optional
You can create your .env file using
cat > .env BEARER_TOKEN = 'ENTER YOUR API KEY'
and then press CTRL+D when you're finished.
You can specify the port where to expose your app adding
PORT = 6060
to your
.env
. If you do not specify a port, it defaults to 8080.
Run in dev mode:
npm run dev
Go to the hompage at localhost:6060 (or whatever port you specified in your .env
file) and write in the text box the handle of the Twitter account you want to track.
Samantha - @samlovv_ - [email protected]
Project Link: tweeter