Skip to content

Commit 05a9393

Browse files
committed
Add instructions
1 parent 1c90eb2 commit 05a9393

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,45 @@
44

55
This repository hosts a library for the first course of the [Scala MOOC](https://www.coursera.org/specializations/scala) ("Functional Programming Principles in Scala").
66

7+
## Run Locally
8+
9+
- Clone this repository, compile and publish the project:
10+
11+
~~~ sh
12+
git clone git@github.com:scalacenter/exercises-fpprinciples.git
13+
cd exercises-fpprinciples/
14+
sbt compile publishLocal # it is important to first run the `compile` command alone
15+
~~~
16+
17+
- Clone the `evaluator` and run it:
18+
19+
~~~ sh
20+
git clone git@github.com:scala-exercises/evaluator.git
21+
cd evaluator/
22+
sbt "project evaluator-server" run
23+
~~~
24+
25+
- Clone the `scala-tutorial` branch of our `scala-exercises` fork:
26+
27+
~~~ sh
28+
git clone -b scala-tutorial git@github.com:scalacenter/scala-exercises.git
29+
~~~
30+
31+
- Follow the database setup instructions given
32+
[here](https://github.com/scala-exercises/scala-exercises#configure-the-database)
33+
34+
- Add the following line the `server/conf/application.dev.conf`:
35+
36+
~~~
37+
evaluator.secretKey="secretKey"
38+
~~~
39+
40+
- Run the server:
41+
42+
~~~ sh
43+
sbt -mem 1500 run
44+
~~~
45+
746
## About Scala exercises
847

948
"Scala Exercises" brings exercises for the Stdlib, Cats, Shapeless and many other great libraries for Scala to your browser. Offering hundreds of solvable exercises organized into several categories covering the basics of the Scala language and it's most important libraries.

0 commit comments

Comments
 (0)