Giter Club home page Giter Club logo

node.js-blog-starter's Introduction

node.js-blog-starter

本项目是一个使用Node.js编写的个人博客系统,同时也使用了其他一些第三方Node.js开源框架和模块,如Express,Mongoose和Mocha等。数据库存储使用的是Mongodb。

本博客系统的功能比较简单,拥有最基本的博客系统的管理功能,前后端都有代码实现。同时,文章和页面管理都支持实时Markdown风格的编辑器,普通游客的评论也支持Markdown。本博客系统还提供了Akismet来帮助你管理评论。

就如本项目命所见那样,这个博客系统是提供给大家作为学习参考的,你可以从里面学到一些不错的知识点:

  • 使用Express来搭建Web应用的框架
  • 使用Mongoose来组织你的数据模型
  • 使用Mongodb来存储session
  • 使用Mocha和Chai进行测试

当然,知识点远远不止上面这些。最后,我希望这个博客系统能帮你入门Node.js。

演示地址:node-blog-starter;

特别说明

本博客系统的前台和后台的页面是由 @willerce 设计和提供的,而且本博客的原版来自于 @willercenoderce

noderce的不同点在于,本博客系统的代码基本都是重写的,使用Mongoose来做数据库存储,Session使用Mongodb来作存储介质,添加了一些新的模块等等。为想学习Node.js的同学提供一点帮助,仅此而已。

安装

克隆项目到本地

git clone https://github.com/happen-zhang/node.js-blog-starter.git path-to-your-dir

安装依赖

cd path-to-your-dir

npm install

修改配置

博客系统的配置文件都存放在/config目录下,你可以在里面找到需要修改的配置文件。

运行程序

请先确保你的Mongodb数据库服务是开启的,然后执行下面的命令运行服务:,

npm start

初始化数据

服务启动后,请访问网站的更目录/,或者是/admin/install,系统会提示你进行初始化。

测试

请先确保安装了Mocha:

npm install -g mocha

然后在项目的根目录下运行下面的命令:

npm test

License

(The MIT License)

Copyright (c) 2014 happen-zhang [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

node.js-blog-starter's People

Contributors

happen-zhang avatar

Watchers

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