There is a running version at http://markdownr.cloudapp.net
You can run MarkdownR on Mac or Windows. If you don't have Windows Azure storage the Open/Save from Blob Storage feature won't work, but everything else will.
- Make sure you've installed Windows Azure SDK for Node JS.
- Open Windows Azure PowerShell for Node.js Console.
- CD to the project root folder.
- Install the project modules by running
npm install
in the PowerShell console. - CD to the
src
folder. - Enable the Windows Azure development storage. For this, open the Web.config file, locate the appSettings tag and set the value of EMULATED to true.
- Start the application by running
Start-AzureEmulator
. - Browse to
http://localhost:8081
and start markdowning!
If you want to deploy to Windows Azure, you need to:
- Run the
setup.cmd
script to copy the src folder in the same folder as the azure service configuration files. - Open the Web.cloud.config file inside the markdownr-web folder, locate the appSettings tag and fill the placeholders (to enable couchdb, see below)
- (Optional) It's highly recommended that you enable remote access the deployment (using the
Enable-AzureRemoteDesktop
cdmlet) - Lastly, run
Publish-AzureService -name [YOUR-HOSTED-SERVICE-NAME]
.
If you are using a Mac or Cloud9 you might need to setup the storage URL pointing to a real Azure Blob Storage account. To do this, you also need to fill the following settings in the Web.config file:
- AZURE_STORAGE_ACCOUNT: Name of the account.
- AZURE_STORAGE_ACCESS_KEY: Account key.
Just run node server.js
and browse to http://localhost:8081/
.
You can set up a couchdb service by following these steps:
- Update the COUCHDB_SERVICE_URI setting in the Web.config file with the URI of your couchdb service (such as http://cloudant.com)
- If you're working with a fresh database:
a. Open the \node_modules\share\bin\options.js file and uncomment the couchdb line. Now, fill the
uri
line right below with the same value you used in step 1. b. Open a command prompt and run the following command:node share\bin\setup_couch
. This will create a _design/sharejs file inside your database.