RyanFleck / ScalaJS

Simple ScalaJS Web Application

Home Page:https://scalajs.ryanfleck.ca/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScalaJS Test Project

Build Status Scala.js

A small repository partially following the basic ScalaJS tutorial showcasing how to compile Scala code for the web. I'm writing this because I'm interested in edge computing and would prefer for computation to be outsourced to client devices to lower server costs. Built with IntelliJ IDEA.

Completed Goals:

  1. Write some Scala
  2. Compile to JavaScript
  3. Manipulate DOM
  4. Write tests to verify DOM was manipulated
  5. Ensure Travis CI can run the tests.
  6. WebPack everything so I can use regular JavaScript, too.
  7. Remove WebPack because it doesn't play nice with ScalaJS and ES6. Investigate?
  8. Create a simple REPL
  9. Pass the contents of a textarea line

ToDo:

  1. Send an XMLHTTPRequest to get some data
  2. Process the contents of a file or line
  3. Persist data in client-side WebDB
  4. Utilize a module from a different repository

Test Example

-------------------------------- Running Tests --------------------------------
+ tutorial.webapp.TutorialAppTest.HelloWorld 4ms  
+ tutorial.webapp.TutorialAppTest.ClickedMessage 4ms  
[info] Tests: 2, Passed: 2, Failed: 0
[success] Total time: 29 s, completed Apr 28, 2020, 6:41:18 PM

About

Simple ScalaJS Web Application

https://scalajs.ryanfleck.ca/


Languages

Language:Scala 54.7%Language:HTML 26.5%Language:JavaScript 8.7%Language:CSS 7.8%Language:Batchfile 1.2%Language:Shell 1.1%