Giter VIP home page Giter VIP logo

sparkybluemix-poc's Introduction

Sparkpost IBM Bluemix PoC

##THIS CODE IS GIVEN AS-IS AND ONLY FOR PROOF OF CONCEPT PURPOSES. USE AT YOUR OWN RISK

Here is a running demo: http://sparkpostbluemixt.mybluemix.net/

This Node.js application has the following prerequisites:

  1. You have an IBM Bluemix account (using Cloud Foundry)
  2. You have a Sparkpost.com account
  3. You have configured a verified Sending Domain in SparkPost.com
  4. You have a valid SparkPost API Key with READ/WRITE permissions for Transmissions
  5. You have Node.js installed locally and NPM

Clone the repository

git clone https://github.com/SparkPost/sparkybluemix-poc.git

EDIT THESE FILES BEFORE TRYING TO DEPLOY TO CLOUD FOUNDRY

  • manifest.yml
    • Replace the values in all caps as indicated
  • app.js
    • Add your SparkPost API Key
    • Add your content.from.name as indicated
    • Add your content.from.email as indicated
    • Add your content.reply_to as indicate
  • package.json
    • Change the name to be what you wantd

Install the dependencies

npm install

Test locally

node app

Open in browser per URL in Node standard out, you should see something that looks like the screenshot below: SparkPost and IBM Bluemix PoC

DEPLOY APP TO IBM Bluemix using Cloud Foundry, follow directions for IBM Bluemix

Node.js Starter Application

Bluemix provides a Node.js starter application as a template so that you can add your code and push the changes back to the Bluemix environment.

Files

The Node.js starter application has files as below:

  • app.js

    This file contains the server side JavaScript code for your application written using the express server package.

  • public/

    This directory contains public resources of the application, that will be served up by this server

  • package.json

    This file contains metadata about your application, that is used by both the npm program to install packages, but also Bluemix when it's staging your application. For more information, see: https://docs.npmjs.com/files/package.json

sparkybluemix-poc's People

Contributors

bdeanindy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.