Skip to content

Serverless AWS Lambda Component to retrieve information from Twitter (Requires config file)

Notifications You must be signed in to change notification settings

claudiordgz/blog-twitter-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0d5795c · Mar 26, 2016

History

24 Commits
Mar 24, 2016
Feb 26, 2016
Mar 24, 2016
Mar 26, 2016
Mar 26, 2016
Mar 24, 2016
Feb 29, 2016
Mar 24, 2016
Mar 26, 2016
Mar 26, 2016
Feb 26, 2016
Mar 26, 2016

Repository files navigation

Blog Twitter Integration

Framework

This project is a Serverless Framework Component. It uses Webpack to handle the src code.

Code is bundled into lib/bundle.js and used by lib/index.js.

Installing

npm install

Testing

Testing is done in tape and to run them use npm run test.

Environment Configuration

Environment is dynamically imported from process.env.NODE_ENV, to create my config I do:

.
+-- _config.yml
+-- src
|   +-- config
|   |   +-- config.js (entry point for configurations)
|   |   +-- env
|   |   |   +-- development.js
|   |   |   +-- production.js
|   |   |   +-- test.js
|   +-- main.js
|   +-- ...
|   +-- test
|   |   +-- ...

Building the src code

I use Webpack locally so after doing npm install do:

  • node_modules/.bin/webpack or
  • node_modules/.bin/webpack --watch to develop continuously

Running

To run use either deploy using slss dash deploy or run locally using slss function run twitter-integration/latest-tweets.

About

Serverless AWS Lambda Component to retrieve information from Twitter (Requires config file)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published