This commit is contained in:
life
2014-05-07 17:28:01 +08:00
parent e233ccbbe6
commit 8e9ed28d2e

View File

@ -1,45 +1,49 @@
## Introduction
leanote, it's a cloud note. You can create your own cloud note in leanote.
Leanote, it's a cloud note. You can create your own cloud note in leanote.
## Features
* Knowledge: manage your knowledge in leanote. Leanote contains tinymce editor and markdown editor, just enjoy yourself and leanote.
* Knowledge: manage your knowledge in leanote. leanote contains tinymce editor and markdown editor, just enjoy yourself in writting.
* Share: share your knowledge to your friends in leanote. Well, you are not alone, you can invite your friends to join your cloud note and share your knowledge each other.
* Cooperation: collaborate with friends to improve your knowledge.
* Blog: public your knowledge and leanote be your blog.
## Why we create leanote
Well, to be honest, our inspiration comes from evernote, and we use evenote to manage our knowledge everyday. But we find that:
To be honest, our inspiration comes from evernote, and we use evenote to manage our knowledge everyday. But we find that:
* Evernote's editor can't meet our needs, it hasn't document navigation, can't put our codes(as a programmer, put codes is the basic needs), can't resize images...)
* We like markdown, but evernote don't support it.
* We want to public our knowledge, so we have our blog(such as wordpress) and evernote, but why can't be one!
* We want to public our knowledge, so we have our blog(such as wordpress) and evernote, but why can't be the one!
* ......
## How to use it
leanote build with golang(revel) and mongodb. so you must install mongodb at first.
Leanote build with golang(revel) and mongodb. so you must install mongodb at first.
### Install mongodb
go http://www.mongodb.org to download and install it.
For more tips please go https://github.com/leanote/leanote/wiki/mongodb-in-leanote
Go http://www.mongodb.org to download and install it.
### Export initial mongodb data
the mongodb data in path_to_leante/mongodb_backup/leanote_install_data
The mongodb data is in path_to_leante/mongodb_backup/leanote_install_data
```
mongorestore -h localhost -d leanote --directoryperdb path_to_leante/mongodb_backup/leanote_install_data
```
the initial data contains two users
The initial data contains two users:
```
user1 username: leanote, password: abc123
user2 username: admin, password: abc123
```
### Configuration
rename path_to_leante/conf/app-default.conf to path_to_leante/conf/app.conf
Copy path_to_leante/conf/app-default.conf to path_to_leante/conf/app.conf, the options contains:
``mongodb`` **required**
the mongodb info
```Shell
db.host=localhost
db.port=27017
@ -50,25 +54,27 @@ db.password=root123
# mongodb://myuser:mypass@localhost:40001,otherhost:40001/mydb
db.url=mongodb://root:root123@localhost:27017/leanote
```
``http.port``
Default is 80
``site.url``
Default is http://localhost, you must config it when your domain isn't it, it is used when upload images.
``email``
for find password
``http.port``
default is 80
``site.url``
default is http://localhost, you must config it when your domain isn't it, it is used when upload images.
``adminUsername``
default is admin. The index site is the adminUsername's blog
Default is admin. The index site is the adminUsername's blog
for more infomation please see app/app.conf and revel manuals http://revel.github.io
For more infomation please see app/app.conf and revel manuals http://revel.github.io
### Run leanote
```
cd path_to_leanote/bin
sh run.sh
@ -76,29 +82,32 @@ sh run.sh
## How to develop leanote
leanote is a app based on revel(http://revel.github.io), so if you want to develop leanote as you want, you must be familar with revel.
For more tips please go https://github.com/leanote/leanote/wiki/How-to-develop-leanote
### install golang
Leanote is a app based on revel(http://revel.github.io), so if you want to develop leanote as you want, you must be familar with revel.
install golang and set GOPATH
### Install golang
### install revel
* go get github.com/revel/revel
* go get github.com/revel/cmd/revel
Install golang and set GOPATH
### get leanote
* go get github.com/leanote/leanote/app
### Install revel
```
go get github.com/revel/revel
go get github.com/revel/cmd/revel
```
### build/run leanote via revel
### Get leanote
now you can modify leanote source and build/run with revel
```
go get github.com/leanote/leanote/app
```
### Build/Run leanote via revel
Now you can modify leanote source and build/run with revel
```
revel run github.com/leanote/leanote
```
Welcome contribute your code to leanote! Thanks.
## License
leanote is released as open-source software under the GNU General Public License (GPL), version 2 or later.
Welcome join with us and contribute your code to leanote! Thanks.