From fe13fefb57b057e33e35f96bade0453029b4f678 Mon Sep 17 00:00:00 2001 From: Haacked Date: Tue, 27 Nov 2012 08:22:14 -0800 Subject: [PATCH] Added a note about how to view the site locally --- README.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8d45529..f9d344f 100644 --- a/README.md +++ b/README.md @@ -34,4 +34,30 @@ it up to accept contributions. Phil will look into whether various open source foundations and lawyers would be interested in being involved. Probably makes good sense to have a lawyer -review the content before we post it live. \ No newline at end of file +review the content before we post it live. + +# Run It On Your Machine + +``` +git clone https://github.com/github/choosealicense.com +cd choosealicense.com +``` + +The site uses relative links so you can easily click on documents to view +them, though default documents (index.html) won't work. + +Or you can also use a simple local webserver: + + +``` +python -m SimpleHTTPServer +open http://localhost:8000/ +``` + +or if you have IIS Express on Windows + +``` +CD "c:\Program Files (x86)\IIS Express\" +iisexpress /path:c:\path\to\choosealicense.com /port:8000 +open http://localhost:8000/ +``` \ No newline at end of file