All Projects → Kenshin → asgard

Kenshin / asgard

Licence: other
AsGard -- 基于Node.js的开源、小型、多人日志系统

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

AsGard -- 基于Node.js的开源、小型、多人日志系统

应用说明:

  • 可以用于搭建CMS系统;多人/单人Blog;小型团队日志系统等。

环境依赖:

  • Node.js version 0.8.18
  • MongoDB version 2.0.5
  • Coffee version 1.3.3
  • express version 3.1.0
  • ejs version 0.8.3
  • mongoose version 2.6.5
  • bootstrap(用于后台管理界面模板)

特点:

  • 全自动部署(具有setup功能,只要将源代码push到cloudfoundry|appfog后即可完成搭建)
  • 代码采用MVC框架
  • 后台管理系统与前台文章浏览系统单独分开,因此一个后台可以“挂”多个前台系统
  • 权限分离。(目前只有管理员与操作员两种角色,互不干扰)

测试地址:

测试账户:

本机运行环境安装说明:

  • git clone git://github.com/Kenshin/asgard.git
  • 解压缩到任意目录,如:e:\asgard
  • 启动MongoDB mongod --dbpath e:\mongodb\asdb
  • 运行Coffee e:\asgard\bat\asgard.bat
  • 启动Node node index
  • 浏览器键入 http://localhost:10080/steup

远程运行环境安装说明: (以AppFog为例)

  • 需要操作系统用于Ruby与Gem环境。
  • 如gem版本过低,请使用gem update --system升级gem版本
  • 安装AF - gem install af
  • 登录AF - af login(appfog的帐号)
  • push xxx -runtime=node08
  • 控制台会打印并且需要录入如下内容:(以asgard为例,具体情况视你实际情况为准)
Would you like to deploy from the current directory? [Yn]: y
Detected a Node.js Application, is this correct? [Yn]: y
1: AWS US East - Virginia
2: AWS EU West - Ireland
3: AWS Asia SE - Singapore
4: Rackspace AZ 1 - Dallas
5: HP AZ 2 - Las Vegas
Select Infrastructure: 1
Application Deployed URL [asgard.aws.af.cm]:
Memory reservation (128M, 256M, 512M, 1G, 2G) [64M]: 128
How many instances? [1]: 1
Create services to bind to 'asgard'? [yN]: y
1: mongodb
2: mysql
3: postgresql
4: rabbitmq
5: redis
What kind of service?: 1
Specify the name of the service [mongodb-10054]: agdb
Create another? [yN]: n
Would you like to save this configuration? [yN]: y
Manifest written to manifest.yml.
Creating Application: OK
Creating Service [agdb]: OK
Binding Service [agdb]: OK
Uploading Application:
  Checking for available resources: OK
  Processing resources: OK
  Packing application: OK
  Uploading (206K): OK
Push Status: OK
Staging Application 'asgard': OK
Starting Application 'asgard': OK

使用说明(以AppFog为例):

  • 进入http://asgard.k-zone.cn/setup
  • 录入管理员的信息。
  • 录入完毕会后跳转到http://asgard.k-zone.cn/asgard-signin
  • 使用刚才录入的管理员信息进行登录操作(注意:权限选择管理员)
  • 登录后,需要分别创建【操作员】与【分类】
  • 创建成功后,就可以用操作员账户登录(注意:权限选择操作员)然后进行日志的录入。
  • 注意:上述的URL以AppFog给出的为准。

更新日志:

###Mobile端(前台):

version 1.1.6 [2013-02-14]

  • 优化了mobile的文件结构,由 \client\views\m*.* → \client\views\front-end\mobile*.* (与publick文件夹结构对应)

version 1.1.5 [2013-02-13]

  • 修复了\client\public\front-end\css\shared.css的一个bug。
  • mobile web增加了search界面。

version 1.0.4 [2013-02-06]

  • m文件夹增加了head.html,用于统一index.html与detail.html中的节。
  • public\front-end\css文件夹增加了desktop与mobile子文件夹,用于分别放置相应的Destop/Mobile的CSS文件。
  • 优化了public\front-end\css\mobile\style.css的内容。
  • 分离了front-end与m文件夹中的footer.html

version 1.0.0 [2013-02-04]

  • 前端页面增加了Mobile浏览界面

###Web端(前台):

version 1.3.10 [2013-02-17]

version 1.3.9 [2013-02-14]

  • 优化了desktop的文件结构,由 \client\views\front-end*.* → \client\views\front-end\desktop*.* (与publick文件夹结构对应)

version 1.3.8 [2013-02-13]

  • 修复了\client\public\front-end\css\shared.css的一个bug。

version 1.3.7 [2013-02-07]

  • 增加了search界面。

version 1.2.7 [2013-02-06]

  • public\front-end\css文件夹增加了desktop与mobile子文件夹,用于分别放置相应的Destop/Mobile的CSS文件。
  • 分离了front-end的head,并优化了节点,使之更符合H5的语法。

version 1.2.5 [2013-02-04]

  • 修复了front-end\index.html与detail.htmlCSS路径的错误。

version 1.2.4 [2013-01-30]

  • 将client\views\front 改为 client\views\front-end
  • index.init 改为 index.articles
  • client\public\front 改为 client\public\front-end
  • controller\index.coffee 改为 controller\front.coffee
  • 优化了index.coffee的文章页、分页、用户页、文章详细页的算法

version 1.1.4 [2013-01-29]

  • 升级到expres 3.1.0,ejs 0.8.3

version 1.0.4 [2013-01-26]

  • fixed bugs

version 1.0.3 [2013-01-21]

  • 增加了favicon
  • 去掉了前端页面的jquery

version 1.0.2 [2013-01-19]

  • release

###后台:

version 0.9.5 [2013-02-17]

  • host on appfog

version 0.9.4 [2013-02-15]

  • 当删除分类、用户、内容时,返回删除成功提示(Alertify方式)
  • 当删除分类、用户、内容时,进行二次确认(Alertify方式)

version 0.8.4 [2013-02-08]

  • 增加站内查询逻辑。

version 0.7.4 [2013-02-07]

  • 修复“当访问首页时,发现取出的contents总数为0,则跳转到setup页面”而未跳转的bug。

version 0.7.3 [2013-02-06]

  • 优化了后台管理模块的页面结构(scritp调整到后面,加快页面的载入)

version 0.7.2 [2013-01-29]

  • 升级到expres 3.1.0,ejs 0.8.3

version 0.6.2 [2013-01-26]

  • fixed bugs

version 0.6.0 [2013-01-18]

  • release

联系方式:

版权和许可:

Copyright 2012 k-zone.cn
Licensed under MIT or GPL Version 2 licenses

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].