CodelyTV / scala-basic-skeleton.g8

Ζ›πŸš€ Starting point if you want to bootstrap a project in Scala

Home Page:http://codely.tv/screencasts/scala-sbt-new/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ CodelyTV Scala Bootstrap (g8 template)

Software License Build Status

ℹ️ Introduction

This is a Giter8 template intended to serve as a starting point if you want to bootstrap a project in Scala.

It could be useful if you want to start a kata, a little exercise or project from scratch. The idea is that you don't have to worry about the boilerplate, just run sbt new codelytv/scala-basic-skeleton.g8 and you're ready to go:

☝️ How To Start

Video screencast (in Spanish)

  1. Install the JDK & SBT tools
  2. Create your new project: sbt new codelytv/scala-basic-skeleton.g8
  3. Set your project parameters. When you run the previous command, you'll be asked for the project parameters such as the Scala language version, the project name and package, and so on.
  4. Move to your project folder and start coding! The template will leave you an example class just to get started quicker in the src/main directory (we avoid the scala default subdirectory because we don't want to split by programming language).
  5. Done! πŸŽ‰πŸ¦„πŸŒˆ

You can now move to your project's directory, enter the SBT shell with the sbt command, and run the test example with test or t.

πŸ€½β€ Pre-push Git hook

There's one Git hook included. It's inside the doc/hooks folder and it will run the prep SBT task before pushing to any remote.

This prep task is intended to run all the checks you consider before pushing. At this very moment, it try to compile and check the code style rules with ScalaFmt.

You can define what this task does modifying the prep task in the build.sbt file. We like the approach of just running 1 single SBT task as the hook instead of multiple tasks because it's more efficient (the hook doesn't have to run SBT multiple times), and also because this way we can control the pre push tasks with the SBT alias defined at the build.sbt without altering the hooks.

If you want to install this hook, just cd doc/hooks and run ./install-hooks.sh.

β˜•πŸ˜ Other programming languages

  • Java
  • PHP
  • Scala: This other skeleton is not based in the Gitter8 template system. So you can actually clone the repo and just start coding.

❓ About

This hopefully helpful utility has been developed by CodelyTV and contributors.

We'll try to maintain this project as simple as possible, but Pull Requests are welcome!

βš–οΈ License

The MIT License (MIT). Please see License File for more information.

About

Ζ›πŸš€ Starting point if you want to bootstrap a project in Scala

http://codely.tv/screencasts/scala-sbt-new/

License:MIT License


Languages

Language:Scala 73.6%Language:Shell 26.4%