The application stores all your notes in your browser local storage spaces such as indexedDB or localStorage, which is good for security reasons, because only you have access to them. Currently you can sync your notes to DropBox and Remote Storage. It’s also highly secure because all of the data is stored in your browser (unless you decide to use Cloud Sync). This is also a downside if you want to have your notes on every device you own. If that’s the case, you’ll need use Cloud Sync
To begin, we need a fresh Ubuntu 14.04 LTS Server. Mine will be using my AWS EC2 instance.
Now, lets add our Laverna user
Next, we need to make sure that we have NodeJS, NPM, and GIT installed
Because Ubuntu is sometimes strange, we need to SymLink our nodejs binary to node
After we have our basics completed, lets switch to the laverna user and goto our home directory
Lets clone the Laverna repo
Once cloned, enter the newly created directory
Checkout the current working production branch
Use NPM to install bower, grunt, and grunt-cli
Next, Alias bower and grunt for this session
Install Laverna’s dependencies
Now that we have Laverna built into static files, we need to create a Virtual Host in our Web Server. Here’s an example for NGINX
Finally, navigate to your site. Bonus Task
Add an SSL Certificate for even more security!
Example NGINX virtual host for SSL
Enable Cloud Storage
You must use HTTPS for DropBox syncing
You can generate a self-signed certificate if you need to
Create a DropBox API Key here
When you create a new app at Dropbox’s Developer site you should keep in mind that:
Once created, we need to add a Redirect URI. Under OAuth2 Redirect URIs add the following
Now, Go to Laverna settings https://mydomain.com/index.html#/settings and find Cloud Storage. Click DropBox, and enter your API Key in the box below.
I recommend while you’re in settings, that you check the Use Encryption Box
Then click Save!
You’ll be prompted to Authorize the app. Once that’s done, you’ll return to your Laverna app and your notes will be synced! They are saved in ~/Dropbox/Apps/AppName