GithubHelp home page GithubHelp logo

azukiapp / sgdemo-pokemon-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from heitortsergent/sgdemo-pokemon

1.0 4.0 0.0 175 KB

SendGrid demo using both Inbound Parse and Outbound Mail API

JavaScript 59.33% CSS 1.15% HTML 39.52%

sgdemo-pokemon-example's Introduction

SendGrid Demo Spec

GET /game/:lifepoints

Should render the game window. Enemy should have full life when page is initially created. Else, should have the life everyone else sees.

Inbound Parse API will perform a POST to /game and this will emit to the frontend to create a mail animation which will attack the enemy. The subject will determine which id is being attacked. The FE will respond with a number which is the amount of damaged caused. This will then be replied to the original sender.

Hits will be 1-5 life points Last hit will get notified that killed the enemy and shall be awarded with something

This hacks uses nodejs, jade, html5 canvas, and of course SendGrid!

Development

Running locally with azk

To run it using azk just do:

$ cp .env.example .env

Change the environment variables inside .env and run:

$ azk start

Running on your machine

After changing the environment variables, start a local redis server:

$ redis-server

Then run your app:

$ npm start

You might also want to run ngrok to test your webhook. If you have it installed, open a new terminal and run:

$ ngrok 3000

sgdemo-pokemon-example's People

Contributors

heitortsergent avatar

Stargazers

Gullit Miranda avatar

Watchers

Everton Ribeiro avatar Marcus Gadbem avatar James Cloos 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.