2014-05-09 18:06:58 +08:00
## 1. Introduction
2014-05-05 01:07:19 -07:00
2014-05-11 22:46:32 +08:00
Leanote, your own cloud note.
2014-05-06 22:40:29 +08:00
2014-05-09 18:08:11 +08:00
**Some Features**
2014-05-09 14:27:03 +02:00
* Knowledge: Manage your knowledge in leanote. leanote contains the tinymce editor and a markdown editor, just enjoy yourself writing.
* Share: Share your knowledge with your friends in leanote. You can invite your friends to join your notepad in the cloud so you can share knowledge.
* Cooperation: Collaborate with friends to improve your skills.
* Blog: Publish your knowledge and make leanote your blog.
2014-05-06 22:40:29 +08:00
2014-05-09 14:27:03 +02:00
## 2. Why we created leanote
To be honest, our inspiration comes from Evernote. We use Evernote to manage our knowledge everyday. But we find that:
* Evernote's editor can't meet our needs, it does not have document navigation, it does not render code properly (as a programmer, syntax highlighted code rendering is a basic need), it cannot resize images and so forth
* We like markdown, but Evernote does not support it.
* We want to share our knowledge, so all of us have our blogs (e.g. on Wordpress) and our Evernote accounts, but why can not those two be one!
2014-05-06 22:40:29 +08:00
* ......
2014-05-09 18:06:58 +08:00
## 3. How to install leanote
2014-05-09 17:56:14 +08:00
2014-05-09 18:06:58 +08:00
### 3.1. Download leanote
2014-05-09 17:56:14 +08:00
2014-05-27 13:30:07 +08:00
Leanote V0.3 has been released. Binaries:
2014-05-09 17:56:14 +08:00
2014-05-27 13:29:19 +08:00
* Linux: [leanote-linux-v0.3.bin.tar.gz ](https://github.com/leanote/leanote/releases/download/0.3/leanote-linux-v0.3.bin.tar.gz )
* MacOS X: [leanote-mac-v0.3.bin.tar.gz ](https://github.com/leanote/leanote/releases/download/0.3/leanote-mac-v0.3.bin.tar.gz )
2014-05-06 22:54:05 +08:00
2014-05-09 14:27:03 +02:00
### 3.2. Install MongoDB
2014-05-09 17:56:14 +08:00
2014-05-09 14:27:03 +02:00
Leanote is written in go using [revel ](https://revel.github.io/ ) and [MongoDB ](https://www.mongodb.org ). Thus, you need to first install MongoDB.
2014-05-09 17:56:14 +08:00
2014-05-09 20:56:11 +08:00
For more tips please have a look at [our wiki ](https://github.com/leanote/leanote/wiki/Install-Mongodb )
2014-05-06 22:54:05 +08:00
2014-05-09 14:27:03 +02:00
### 3.3. Import initial MongoDB data
2014-05-06 22:59:52 +08:00
2014-05-10 14:27:50 +08:00
The mongodb data is in `[PATH_TO_LEANOTE]/mongodb_backup/leanote_install_data`
2014-05-07 17:28:01 +08:00
2014-05-06 22:59:52 +08:00
```
2014-05-09 14:27:03 +02:00
$> mongorestore -h localhost -d leanote --directoryperdb PATH_TO_LEANOTE/mongodb_backup/leanote_install_data
2014-05-06 22:59:52 +08:00
```
2014-05-07 17:28:01 +08:00
2014-05-09 14:27:03 +02:00
The initial database contains two users:
2014-05-07 17:28:01 +08:00
2014-05-07 08:56:19 +08:00
```
user1 username: leanote, password: abc123
user2 username: admin, password: abc123
```
2014-05-06 22:59:52 +08:00
2014-05-09 18:06:58 +08:00
### 3.4. Configuration
2014-05-06 22:54:05 +08:00
2014-05-10 14:27:50 +08:00
Modify `[PATH_TO_LEANOTE]/conf/app.conf` . Available configuration options are:
2014-05-06 22:54:05 +08:00
2014-05-07 17:28:01 +08:00
``mongodb` ` **required**
2014-05-06 22:54:05 +08:00
2014-05-06 22:56:38 +08:00
```Shell
2014-05-06 22:54:05 +08:00
db.host=localhost
db.port=27017
2014-05-09 15:09:28 +08:00
db.dbname=leanote
db.username=
db.password=
2014-05-06 22:54:05 +08:00
```
``http.port` `
2014-05-07 17:28:01 +08:00
Default is 80
2014-05-06 22:54:05 +08:00
2014-05-07 15:58:58 +08:00
``site.url` `
2014-05-09 14:27:03 +02:00
Default is `http://localhost` , you must edit this when hosting leanote anywhere else. This is used when uploading images.
2014-05-07 17:28:01 +08:00
``email` `
2014-05-09 14:27:03 +02:00
For password recovery mails
2014-05-07 15:58:58 +08:00
2014-05-06 22:54:05 +08:00
``adminUsername` `
2014-05-09 14:27:03 +02:00
Default is `admin` . The landing page is the admin user's blog.
2014-05-06 22:54:05 +08:00
2014-05-09 14:27:03 +02:00
For more infomation please see `app/app.conf` and the [revel manuals ](https://revel.github.io/ )
2014-05-06 22:54:05 +08:00
2014-05-09 18:06:58 +08:00
### 3.5. Run leanote
2014-05-07 17:28:01 +08:00
2014-05-07 11:55:08 +08:00
```
2014-05-09 14:27:03 +02:00
$> cd PATH_TO_LEANOTE/bin
2014-05-09 15:13:12 +08:00
$> sudo sh run.sh
2014-05-06 22:56:38 +08:00
```
2014-05-09 18:06:58 +08:00
## 4. How to develop leanote
2014-05-06 22:54:05 +08:00
2014-05-27 13:32:30 +08:00
Please see [our wiki ](https://github.com/leanote/leanote/wiki/How-to-develop-leanote )
2014-05-09 21:18:56 +08:00
2014-05-09 21:20:48 +08:00
## Discussion
2014-05-27 13:32:30 +08:00
[leanote google group ](https://groups.google.com/forum/#!forum/leanote )