Giter VIP home page Giter VIP logo

realtime-planner's Introduction

Goal

Test RxJS combined with Web Sockets by setting up a real time planner where appointments can be made. Multiple users can add/remove/edit appointments and changes should propagate in real time to all users.

To simulate extra users it should be possible to enable random planner activity on the server.

ES 6 modules test

Run http-server

Native ES6 module work in Chrome > 61 (e.g. Chromium in /codestar-website/node_modules/puppeteer/.local-chromium/linux-515411/chrome-linux/chrome) It works with two standalone modules (main.js and test.js). However, RxJS still uses require and that conflicts when loading into the browser. Therefore still use webpack/typescript.

Webpack

Develop

  • npm i and npm i -g ts-node typescript
  • Run npm start
  • Also run node server/
  • Open browser at localhost:9000

./node_modules/.bin/prettier src/*.ts --write

Develop with firebase

  • npm i -g firebase
  • firebase serve --only functions,hosting

Build

  • Run npm run build
  • Then run node server/
  • Open browser at localhost:9001

Deploy setup

https://www.youtube.com/watch?v=LOeioOKUKI8

  • npm install -g firebase-tools

  • firebase init hosting

  • public = dist

  • SPA = yes

  • firebase init functions

Deploy updates

Firebase and Travis CI

https://docs.travis-ci.com/user/deployment/firebase/

Run Prettier on save (in Webstorm) https://prettier.io/docs/en/webstorm.html > "Using a file watcher"

Go to File | Settings | Tools | File Watchers for Windows and Linux or WebStorm | Preferences | Tools | File Watchers for OS X and click + to add a new tool. Let’s name it Prettier. File Type: JavaScript Scope: Current File Program set prettier (if you have prettier installed locally, see "Configure External Tool" above) Arguments set --write [other opts] $FilePath$ Working directory set $ProjectFileDir$ Immediate file synchronization: Uncheck to reformat on Save only (otherwise code will jump around while you type).

Styling: material design lite https://getmdl.io/

TODO

Planning

Follow up

  • Try out sentry.io
  • Webpack 4, ParcelJS
  • combine with Redux
  • Firebase and hosting
  • Try out https://stenciljs.com/

realtime-planner's People

Contributors

mdvanes avatar

Watchers

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.