Boilerplate, SocketIO, Jasmine, TypeScript

Recommended Posts

Boilerplate: https://github.com/8Observer8/boilerplate-socketio-typepescript-unit-tests-jasmine-specs

Run: https://boilerplate-socketio.herokuapp.com/

My boilerplate boilerplate allows:

  • Add new clients in TypeScript using Socket.io (Now I have two clients: BabylonJS and PixiJS).
  • Build to debug version. I use the AMD compilation and the RequireJS library. The debug version allows to set breakpoint using Chrome extension for VSCode and publish TS examples with a few file on Plunker.
  • Build to release version. I use the CommonJS compilation, Browserify and Uglify to create a minified bundle.
  • Build Jasmine specs for server and clients.
  • Build Jasmine specs to debug and to release versions.
  • Build Jasmine specs for shared script like for server. Shared script is scripts in the "shared" folder that are shared by server and client.
  • Set up breakpoints for Jasmine specs on server and on clients.
  • Run Jasmine specs in browser by click on the "Run Unit Tests" button: https://boilerplate-socketio.herokuapp.com
  • Run Jasmine specs in Playground by click on the "Run Unit Tests" button: https://next.plnkr.co/edit/77Ex6gPTBxQyyXNML9tk?p=preview&preview
  • Run the client and server at the same time to debug in compound mode in VSCode (see docs: Compound launch configurations) when you can set breakpoint at the server and client at the same time.

Step-by-step instruction:

  • Will be later

Share this post

Link to post
Share on other sites

See how it is simple to deploy your application that based of my boilerplate on Heroku:

  • Create a new repository on Github
  • Create a new Node.js web application on Heroku: https://www.heroku.com
  • Set "GitHub" in "Deployment method" on the Deploy tab of heroku
  • Push your changes on GitHub

Your server and client well be deployed automatically on Heroku. Heroku will be automatically deploy your app from Github every time when you push your commits on GitHub. See the "Activity" tab when deployment will be finished.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.