Assuming you have JDK 8 already installed, follow this instructions:
- Install Scala in your system (you will need it to run the App) from here. And don't forget to set up the enviroment variables as it's shown here.
- Install Scalatra following the instructions given in the official webpage.
- Clone this repository:
$ git clone https://github.com/nebur395/uCode17
SBT is the tool used to build and run this Scala project. It is a common way to run when developing an Scala application, it will manage all your dependencies and will run the JVM needed to start the Scala aplication.
When you type ./sbt
an interpreter will open where you will type jetty:start
in order to run this app.
To sum up:
$ cd uCode17
$ ./sbt
> jetty:start
Then access http://localhost:8080/ in your browser.
SBT allows you to run the tests defined on src/test:
$ git clone https://github.com/nebur395/uCode17
$ cd uCode17
$ ./sbt
> test
>clean
allows you to remove the content in the target folder which will cause
SBT to check the dependencies again. If any dependency is not updated, it will
automatically download the correct version.
EditorConfig helps developers maintain consistent coding styles between different editors and IDEs. It is a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. You need to create a .editorconfig file in which you define the coding style rules. It is similar to the format accepted by gitignore.
These editors come bundled with native support for EditorConfig. Everything should just work: BBEdit, Builder, CLion, GitHub, Gogs, IntelliJIDEA, RubyMine, SourceLair, TortoiseGit, WebStorm.
To use EditorConfig with one of these editors, you will need to install a plugin: AppCode, Atom, Brackets, Coda, Code::Blocks, Eclipse, Emacs, Geany, Gedit, Jedit, Komodo, NetBeans, NotePadd++, PhpStorm, PyCharm, Sublime Text, Textadept, textmate, Vim, Visual Studio, Visual Studio Code, Xcode