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: readme.md
+19-29
Original file line number
Diff line number
Diff line change
@@ -18,41 +18,31 @@ ASP.net 5 can target the newly open sourced [CoreCLR](http://blogs.msdn.com/b/do
18
18
### Easier Way
19
19
The easier way to run this application is using the package hosted on GitHub:
20
20
21
-
1. Install the DNVM (a version manager for DNX runtimes).
22
-
* Windows: Run this from a console window with administrator privileges: `@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"`.
23
-
* OS X:
24
-
1. [Install Homebrew](http://www.brew.sh).
25
-
2. Run `brew tap aspnet/dnx`.
26
-
3. Run `brew update`.
27
-
4. Run `brew install dnvm`.
28
-
* Linux: Follow [this guide](https://github.com/aspnet/Home/blob/dev/GettingStartedDeb.md); good luck.
29
-
2. Run `dnvm upgrade` to install a version of the DNX.
6. Issue GET requests to http://localhost:5000/quiz/merge with the appropriate query string parameters.
30
+
5. Issue GET requests to http://localhost:5000/quiz/merge with the appropriate query string parameters.
36
31
37
32
### Harder Way
38
33
39
34
To run the application from scratch, one must [clone this repository](http://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository) and then [setup DNX](https://github.com/aspnet/Home/blob/dev/README.md). Once DNX is installed (either on Windows, OS X, or Linux), one should go through the process of getting the required packages in position and starting the runtime.
40
35
41
-
1. Install the DNVM (a version manager for DNX runtimes).
42
-
* Windows: Run this from a console window with administrator privileges: `@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"`.
43
-
* OS X:
44
-
1. [Install Homebrew](http://www.brew.sh).
45
-
2. Run `brew tap aspnet/dnx`.
46
-
3. Run `brew update`.
47
-
4. Run `brew install dnvm`.
48
-
* Linux: Follow [this guide](https://github.com/aspnet/Home/blob/dev/GettingStartedDeb.md); good luck.
49
-
2. Run `dnvm upgrade` to install a version of the DNX.
50
-
3. Clone this repository.
51
-
4. Change directories to the root of the cloned repository.
52
-
5. Run `dnu restore` to restore the required packages.
53
-
6. Change directories to .\src\StreamMerge.
54
-
7. Start the application with the command `dnx . web` on Windows or `dnx . kestrel` on OS X/Linux.
55
-
8. Issue GET requests to http://localhost:5000/quiz/merge with the appropriate query string parameters.
3. Change directories to the root of the cloned repository.
42
+
4. Run `dnu restore` to restore the required packages.
43
+
5. Change directories to .\src\StreamMerge.
44
+
6. Start the application with the command `dnx . web` on Windows or `dnx . kestrel` on OS X/Linux.
45
+
7. Issue GET requests to http://localhost:5000/quiz/merge with the appropriate query string parameters.
56
46
57
47
Note, I haven't actually tried this on OS X and Linux; your mileage may vary.
58
48
@@ -65,4 +55,4 @@ No future work is actually planned for this project. However, if there were to
65
55
66
56
***Unit test coverage of corner cases** - The test as written now is simply a quick check that streams are merged and state is preserved between invocations. Better test coverage should be added to cover corner cases. For example, what happens when the application is invoked with overlapping stream names? The quiz prompt was vague on this point, so the behavior right now is undefined.
67
57
***Configurable target API** - The address of the Peloton API is presently hard coded into `StreamClient`. This should instead be driven by configuration files so that one can retarget the application to a different location like a sandbox API instance. This could be implemented using the [`IConfiguration` contract](http://whereslou.com/2014/05/23/asp-net-vnext-moving-parts-iconfiguration/).
68
-
***More expressive input contract** - The quiz prompt only asked to merge two named streams. The `IStreamRepository` contract, though, is capable of merging any positive number of streams. Extending this capability to consumers of StreamMerge could be valuable.
58
+
***More expressive input contract** - The quiz prompt only asked to merge two named streams. The `IStreamRepository` contract, though, is capable of merging any positive number of streams. Extending this capability to consumers of StreamMerge could be valuable.
0 commit comments