Giter Site home page Giter Site logo

cheerpweb's Introduction

Demo

https://cheerp.cppse.nl/

Project

The project constists of three parts:

  • The front-end (./src -> when compiled ./dist) UI based on VueJS.
  • The back-end API (./docker_api) uses a very simple Python Flask server, the back-end is deployed inside a docker container with the Cheerp compiler.
  • The docker image for the front-end (./docker_web) that only hosts the statically build files.

And all of the above is deployed on Kubernetes, for this see the ./kube directory.

Build

For nodejs projects it can be difficult to setup a dev environment. It's probably important you use a new nodejs version, at least one compatible the one used: node-v10.12.0-linux-x64.

cd node-v10.12.0-linux-x64/bin
export PATH=$PATH:$PWD

Please verify that it's working with:

trigen@zenbook:~/projects/cheerpweb[master]> node -v
v10.12.0
trigen@zenbook:~/projects/cheerpweb[master]> npm -v
6.4.1

Then use the Makefile when developing:

  • make dev - build and start a hot swapping debug server (very convenient while developing)
  • make api_dev - start the API server in a docker image running on port 5000.

Other useful directives:

  • make build - build the release version (in ./dist) of the UI (takes a while)
  • make docker_api - build the container that hosts the Cheerp compiler + Python Flask API server.
  • make docker_web - build the container that hosts the UI's static files.
  • make prepare - wget the node version for this project, extract and install it to /usr/local.
  • make release - there are a bunch of other Makefile directives, but better just use this one to do everything required for a release.

Build status

Build Status MPL 2.0 License

Resources used for this project

Followed this readme for webpack: https://webpack.js.org/guides/getting-started/

Followed this for bulma: https://bulma.io/documentation/customize/with-webpack/

For vuejs: https://itnext.io/vuejs-and-webpack-4-from-scratch-part-1-94c9c28a534a

For devserver: https://itnext.io/vue-js-and-webpack-4-from-scratch-part-2-5038cc9deffb

Pass "reference" to child components https://stackoverflow.com/questions/40915436/vuejs-update-parent-data-from-child-component

License

MPL 2 , see LICENSE file.

cheerpweb's People

Contributors

rayburgemeestre avatar dependabot[bot] avatar

Stargazers

 avatar Piotr Wera avatar Scott J avatar Stefano De Rossi avatar Carlo Piovesan avatar Yuri Iozzelli avatar

Watchers

Stefano De Rossi avatar  avatar

Forkers

iznotek

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.