Git Product home page Git Product logo

essential-scala-code's Introduction

Essential Scala Code

This repository contains exercises and solutions for Underscore's Essential Scala training course.

If you want to discuss the content or exercises with the authors, join us in our chat room on Gitter.

Gitter

Using the Source Code

This repository contains two branches: one for exercises and one for solutions. The directory structure is the same in each branch.

You will need to have Git and Java and an internet connection to run the exercises. All other dependencies are either included with the repo or downloaded on demand during compilation.

Notes on Editors and IDEs

If you don't have a particular preference for a Scala editor or IDE, we strongly recommend you do the exercises for this course using the Atom editor and a Linux or OS X terminal. See the instructions below to get started.

If you want to use Scala IDE for Eclipse, we recommend using sbteclipse. Follow the instructions on the sbteclipse web page to install it as a global SBT plugin.

If you want to use IntelliJ IDEA, follow the instructions for Importing an SBT Project in the IntelliJ online documentation.

Getting Started on Linux or OS X

To get started:

  1. Clone this repository to a directory on your hard drive, e.g. ~/essential-scala-code:

    bash$ git clone https://github.com/underscoreio/essential-scala-code.git
    
  2. Change to the root directory in the repository:

    bash$ cd essential-scala-code
    
  3. Run the sbt.sh script. You may have to wait while SBT downloads various dependencies:

    bash$ ./sbt.sh
    # Lots of output here...
    # The first run will take a while...
    
    >
    
  4. Type runMain intro.HelloWorld at the SBT prompt. You may have to wait while SBT downloads various dependencies.

  5. If you see the message "Hello world!", you're ready to go!

If you have any problems getting started, get in touch on Gitter.

Getting Started on Windows

You will need to have installed Git and Java (we recommend Oracle's Java 7 SDK). Complete the following steps outlined in Chapter 1 in the section entitled "Setting up SBT for This Book":

  1. Clone this repository to a directory on your hard drive, e.g. C:\essential-scala-code:

    C:\> git clone https://github.com/underscoreio/essential-scala-code.git ↩
                     C:\essential-scala-code
    
  2. Change to the root directory in the repository:

    C:\> cd\essential-scala-code
    
  3. Run the sbt.bat script. You may have to wait while SBT downloads various dependencies:

    C:\essential-scala-code> sbt
    # Lots of output here...
    # The first run will take a while...
    
    >
    
  4. Type runMain intro.HelloWorld at the SBT prompt. You may have to wait while SBT downloads various dependencies.

  5. If you see the message "Hello world!", you're ready to go!

If you have any problems getting started, get in touch on Gitter.

essential-scala-code's People

Contributors

ghisvail avatar

Watchers

James Cloos avatar  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.