Code Monkey home page Code Monkey logo

elephantblog's Introduction

大象博客/ElephantBlog

☞ 演示/Demo

简介/introduction

使用Koa2基于印象笔记API,将您的笔记发布到个人博客网站.
Using Koa2 and base on Evernote API,publish your Evernote notes to personal website as blog.

Quick Start

git clone git@github.com:jiangfb/elephantBlog.git
cd elephantBlog/config

//duplicate index.sample.js and rename to index.js
//config value
module.exports = {
	//server port
	port: 3000,
	/* if YXBJ set true,evernote set false */
	china: true,
	/*  change to false when you are ready to switch to production */
	sandbox: false,
	/* config which one notebook's content can be displayed in your blog. */
	blogNoteBookName: '大象博客',//default name
	/* 
	evernote(YXBJ) development token , 
	apply from https://app.yinxiang.com/api/DeveloperToken.action 
	如果不能自助申请可以在此人工申请 
	https://www.yinxiang.com/contact/support/ticket/
	*/
	token: 'Your evernote development token',
}

//In the evernote app, create a new notebook named as '大象博客' or you configured just now

npm i
npm start //http://localhost:3000

Configuration and Customization

  • change layout or menu
    ./view>components>layout.njk/menu.njk
  • change UI
    ./public/static/index.scss

备注/Note

  • 笔记内容解析是基于enml2html.js修改,(./evernote/tool/enml2html)将笔记图片保存到网站静态目录防止未分享笔记图片不显示.

  • 所有数据请求都有做缓存处理,列表10分钟,笔记内容30分钟等等(./evernote/api/elephantBlogApi.js)

  • Modify enml2html.js to parse the Evernote enml,it will save note's picture to static folder to prevent encounter error when get pictures from a unshare note.

  • All the data from api response have already cached,i.e.,notes list cached 10 minutes,note content cached 30 minutes; (./evernote/api/elephantBlogApi.js)

elephantblog's People

Contributors

jiangfb avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

c99w99

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.