Jump to content
  • Advertisement
  • entries
  • comments
  • views

Boilerplate, SocketIO, Jasmine, TypeScript



Boilerplate Source: 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


Recommended Comments

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 comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!