Giter Club home page Giter Club logo

hacklondon-realtime-message-board's Introduction

hacklondon-realtime-message-board

A realtime message board powered by Stamplay to demo at http://hacklondon.org

Hacklondon

At Stamplay we love events where the hacker ethos of students spread all over the place. This events cultivate communities where aspiring hackers have the opportunity to learn, build, and share their creations with the world. This is a realtime message board built with Stamplay and Pusher with client-side only code.

In this app users can signup with Github and leave a message on the board that gets updated in realtime. Here is what you will get: https://hacklondon.stamplayapp.com


Anatomy

This demo is built around the following building blocks

Requirements

Go to your account and create a new app.

Configuring the components

After creating a new app on Stamplay let's start by picking the component we need in our app. Lets see one-by-one how they are configured:

User

Since this is something for developers we decided to make our users signup with our last OAuth integration, Github. To get your own credentials go to https://github.com/settings/applications and click on "Register a new app". Fill the "Authorized Redirect URIs" with the URL: https://[appId].stamplayapp.com/auth/v0/github/callback and you'll have your ClientId and Secret to fill the fields as you can see from the image below.

Github OAuth

Custom Object

Let's define the data model for this app that is called Message and is defined as follows:

Message
  • Name: comment, Type: string, required, the question’s title
  • Name: avatar, Type: string, required, the question’s body
  • Name: username, Type: string, required, the question’s body
  • Name: img, Type: string, required, the question’s body

After completing this Stamplay will instantly expose REST APIs for our new resources at this URL: https://APPID.stamplayapp.com/api/cobject/v0/message

hacklondon-realtime-message-board's People

Contributors

giuliano84 avatar claudiopetrini avatar

Watchers

James Cloos 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.