Git Product home page Git Product logo

tuer.me's Introduction

tuer.me

安装说明:

  • 建议在linux下开发,windows和mac os都没测过。。npm搞不定,建议使用git clone直接下载源码再npm install -d 也可以.

  • npm安装tuer之前,严重建议先自己把以下几个模块搞定node-canvas,ImageMagick,SendMail自行搞定。可以自己找个空目录npm安装下试试,官方有文档在不同系统下的配置wiki.

  • npm安装 npm install tuer

  • 安装好后,进入tuer目录,npm test 查看环境变量和wiki地址帮助说明.

  • 根据test提示,进行本地环境配置,网站的所有配置信息都在./lib/config.js 里,端口以及host请自行修改.

  • 初始化mongodb数据 命令为: mongo host:port/dbname ./model/init.js 执行命令进行数据库初始化,其中host,port,dbname都要和config.js里的匹配.

  • npm start 就可以直接运行tuer网站.

  • 数据库开始为空,注册需要依赖本地的sendMail,如果本机不安装sendMail,则注册,找回密码,删回复等功能会报错,默认会有一个测试账户,在./model/init.js中被添加 用户名[email protected] 密码1234qwer

调用方法

  //参见目录下的index.js
  var tuer = require('tuer'),
  tuer.start({
    rootdir:'/app/path',
    port:3000,
    mport:3030,
    cookiepath:'tuer.me',
    host:'www.tuer.me',
    jshost:'js.tuer.me',
    csshost:'css.tuer.me',
    imagehost:'assest.tuer.me',
    dbname:'node-mongo-tuer',
    dbhost:'127.0.0.1',
    dbport:10001,
    mhost:'m.tuer.me'
  });

License

tuer.me 使用BSD license, LICENSE中为协议正文内容.

tuer.me's People

Contributors

xiaojue avatar

Watchers

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