Twitter-like demo with limited functionality https://tweets-server.now.sh/
-
Start by copying the
.env.templatefile, making a.envin the project root. -
You will need your own
CONSUMER_KEYandCONSUMER_SECRETto put in your new.envfile- you can get these by creating an app at https://apps.twitter.com/app/new
-
Run the server using either
npm run dev(local development)npm start(production)
-
This changes the callback URLs to the
tweetsclient application
-
Add your
CONSUMER_KEYandCONSUMER_SECRETas Secretsnow secret add consumer_key XXXXXXXXXXXXnow secret add consumer_secret XXXXXXXXXXXX
-
And then expose these to your deployment as Environment Variables using the -e flag
now -e CONSUMER_KEY=@consumer_key -e CONSUMER_SECRET=@consumer_secret