You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chapter_20/README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
#Exercises for Chapter 20
1
+
#Exercises for Chapter 20
2
2
3
-
##1. Build a database for a website. Database needs to have three tables: users, tips and abuse.
3
+
##1. Build a database for a website. Database needs to have three tables: users, tips and abuse.
4
4
`erlang_tips.erl` is stored in `exercise_1/`. Example usage:
5
5
6
6
1> erlang_tips:module_info(exports).
@@ -32,7 +32,7 @@
32
32
{tip,"google.com","This site is a fake",undefined}]
33
33
5>
34
34
35
-
##2. Take the previous exercise and get it run with ram and disk copies on two nodes.
35
+
##2. Take the previous exercise and get it run with ram and disk copies on two nodes.
36
36
`erlang_tips.erl` is stored in `exercise_2/`. To run the `erlang_tips` database on two nodes open up two terminal sessions and start two Erlang nodes. The first:
37
37
38
38
cd exercise_2/
@@ -64,5 +64,5 @@ Then run the `all_tips` function to retrieve the tips on node 2:
64
64
{tip,"google.com","Use this site to find stuff",undefined}]
65
65
(node2@localhost)2>
66
66
67
-
##3. Write function to reject tip submissions if the user has submitted more than 10 tips in a one-day period. Time queries.
67
+
##3. Write function to reject tip submissions if the user has submitted more than 10 tips in a one-day period. Time queries.
68
68
`erlang_tips.erl` for exercise 3 is stored in `exercise_3/`. To run this version of the `erlang_tips` you only need to run one node.
0 commit comments