Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.1 KB

Readme.md

File metadata and controls

49 lines (34 loc) · 1.1 KB

Typetron example using WebSockets

> **Note:** This project is a prototype in heavy development and not ready for production.

Start the backend

$ npm install
$ npm start

Start the frontend

Pick you favorite frontend technology. You can find the available example in the frontend directory

1. Angular

$ cd frontend/angular
$ npm install
$ npm start

Check the Angular app console on http://localhost:4200) to see the WebSockets message.

2. React

$ cd frontend/react
$ npm install
$ npm start

React will automatically open a browser window with the frontend app. Check you console to see the WebSockets message.

3. Vue

In progress

4. Webpack (just a simple website, with no frameworks)

$ cd frontend/webpack
$ npm install
$ npm build

After the build is done, webpack will output an index.js file in the /public directory. From here, all you have to do is to open the Typetron app (usually on http://localhost:8000) and check your console