GithubHelp home page GithubHelp logo

billyct / learn Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 6.0 139.04 MB

使用Meteor编写的一个在线教育站点 “just for fun”

Home Page: learn-app.meteor.com

CoffeeScript 11.73% CSS 31.57% JavaScript 56.70%

learn's Introduction

LEARN

一个Meteor编写的在线教育网站程序

Learn 是一个Meteor编写的在线教育网站程序,实时WEB,重要的在于分享以及讨论使用Meteor这个有趣的东西在编写程序遇到的事情

DEMO地址:http://learn-app.meteor.com

开始

确保你已经开始使用NodeMeteor

步骤 1: 克隆源码

$ git clone https://github.com/billyct/learn.git

步骤 2: 设置

配置lib/setting.js文件里面的github开放平台和qiniu的存储秘钥等配置

可以在collections/schemas.coffee文件里,初始化课程类型等数据

步骤 3: 安装

$ cd learn
$ mrt

然后访问http://localhost:3000

关于修改的一些东西

因为mrt了moment包,但是这个包并没有使用中文语言所以,所以如果有需要的话,可以自己修改

/packages/moment/package.js

并且加入

api.add_files('lib/moment/lang/zh-cn.js', where)

vender里面的marked.js不是原生的marked.js为了配合prism的语法高亮所以修改了里面的case code时候的return

return '<pre'
  +' class="'
  + this.options.langPrefix
  + this.token.lang
  + '"'
  + '><code'
  + (this.token.lang
  ? ' class="'
  + this.options.langPrefix
  + this.token.lang
  + '"'
  + 'data-language="'
  + this.token.lang
  + '"'
  : '')
  + '>'
  + this.token.text
  + '</code></pre>\n';

添加了多语言

关于语言的设置在./lib/setting文件里,语言包在./client/lib/language里,支持english和中文的啦

未完成的东西

  • subscribe和publish不够干净
  • 管理员管理课程类别
  • 多语言
  • 个人页面和管理员页面
  • 在线支付改成捐赠方便高效
  • 本地的文件和(本地视频的转码,可能需要本地转码),因为现在只是把文件上传到七牛

learn's People

Contributors

billyct avatar

Stargazers

charlie chen avatar James Yang avatar Shi hua avatar  avatar 大轰 avatar Andy Lu avatar cobola avatar  avatar

Watchers

James Cloos 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.