Skip to content

Commit

Permalink
Add Java, Scala, IntelliJ, and Terminal setup instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowers committed Oct 23, 2020
1 parent 4268243 commit 70f5125
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Understanding the details of your machine setup helps you debug issues. This gu
## How to provision a Mac from scratch

* [Mac setup](https://github.com/MrPowers/cali/blob/master/guides/mac.md)
* [Terminal](https://github.com/MrPowers/cali/blob/master/guides/terminal.md)
* [Chrome](https://github.com/MrPowers/cali/blob/master/guides/chrome.md)
* [Visual Studio Code](https://github.com/MrPowers/cali/blob/master/guides/vscode.md)
* [Homebrew, Git, GitHub](https://github.com/MrPowers/cali/blob/master/guides/homebrew_git_github.md)
Expand All @@ -17,6 +18,7 @@ Understanding the details of your machine setup helps you debug issues. This gu
* [Vim](https://github.com/MrPowers/cali/blob/master/guides/vim.md)
* [Java / Scala / SBT / Spark](https://github.com/MrPowers/cali/blob/master/guides/java_scala.md)
* IntelliJ
* Maven publishing / GPG
* AWS CLI
* bash_profile
* NPM
Expand Down
7 changes: 7 additions & 0 deletions guides/intellij.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# IntelliJ

IntelliJ is a great text editor for Java and Scala.

Download it and make sure you install Scala as you're setting it up.

You can disable extension families, like version control, if you're not interested in using those features via a text editor. I run all the version control commands from the terminal.
6 changes: 6 additions & 0 deletions guides/java_scala.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ Install SBT with `brew install sbt`.
Clone the spark-daria repo with `git clone git@github.com:MrPowers/spark-daria.git`.

`cd` into the `spark-daria` project directory and run `sbt test` to make sure your environment is properly setup. The command should install Scala, Spark, all the other project dependencies, and successfully run all the tests.

## Additional Optional setup

Run `brew install scala` so you can easily open up a Scala REPL for experimental development.

You can also [download Spark from the website](https://spark.apache.org/downloads.html) so you have another way to execute Spark code on your local machine. This isn't necessary. We've already seen how to run the test suite for an entire Spark application with SBT (cloning spark-daria and then running `sbt test`).
4 changes: 1 addition & 3 deletions guides/mac.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Mac Setup

The default shell has been changed from Bash to ZSH as of macOS Catalina. All commands in this guide use the `~/.zshrc` file instead of the `~/.bash_profile`.

Set trackpad sensitivity to max. Enable touch click. These are in System Preferences => Trackpad.
Set trackpad sensitivity to the highest sensitivity you can handle (I set it to max). Enable touch click. These are in System Preferences => Trackpad.

Remove all icons from your dock (you can add back the ones you want later).

Expand Down
9 changes: 9 additions & 0 deletions guides/terminal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Terminal

The default shell has been changed from Bash to ZSH as of macOS Catalina. All commands in this guide use the `~/.zshrc` file instead of the `~/.bash_profile`.

## zshrc

Customize the command prompt by adding `PROMPT='%1~ %# '` to the `~/.zshrc` file.

## bash_profile
6 changes: 5 additions & 1 deletion guides/vscode.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ You'll want to be able to open the VS Code editor from the Terminal with the `co

```
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
```
```

TODO
* default text size
* enable vim codebindings

0 comments on commit 70f5125

Please sign in to comment.