Git Product home page Git Product logo

leanote's Introduction

Introduction

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 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

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 the one!
  • ......

How to use it

Leanote build with golang(revel) and mongodb. so you must install mongodb at first.

Install mongodb

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 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:

user1 username: leanote, password: abc123
user2 username: admin, password: abc123

Configuration

Copy path_to_leante/conf/app-default.conf to path_to_leante/conf/app.conf, the options contains:

mongodb required

db.host=localhost
db.port=27017
db.dbname=leanote # required
db.username=root
db.password=root123
# or you can set the mongodb url for more complex needs
# 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

adminUsername

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

Run leanote

cd path_to_leanote/bin
sh run.sh

How to develop leanote

For more tips please go https://github.com/leanote/leanote/wiki/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.

Install golang

Install golang and set GOPATH

Install revel

go get github.com/revel/revel
go get github.com/revel/cmd/revel

Get leanote

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 to join with us and contribute your code to leanote! Thanks.

leanote's People

Contributors

lealife avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.