All Projects → linxiaowu66 → douMiBlog-Sailsjs

linxiaowu66 / douMiBlog-Sailsjs

Licence: other
豆米博客-Sailsjs版,个人博客系统,使用SailsJs,MongoDb,Bootstrap,marked,SASS,swig等

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to douMiBlog-Sailsjs

pyaer
Low-level Python APIs for Accessing Neuromorphic Devices.
Stars: ✭ 20 (-9.09%)
Mutual labels:  swig
go course
個人多年來學習與實作上的心得筆記
Stars: ✭ 25 (+13.64%)
Mutual labels:  swig
angular2-sails
An angular module for using the sails socket.io api in angular2 (@angular)
Stars: ✭ 37 (+68.18%)
Mutual labels:  sailsjs
sails-token-auth-setup
Token based authentication installation guide
Stars: ✭ 24 (+9.09%)
Mutual labels:  sailsjs
sails-inverse-model
Generate views, models and controllers for SailsJS from MySQL, PostgreSQL and MongoDB
Stars: ✭ 51 (+131.82%)
Mutual labels:  sailsjs
CuVec
Unifying Python/C++/CUDA memory: Python buffered array ↔️ `std::vector` ↔️ CUDA managed memory
Stars: ✭ 73 (+231.82%)
Mutual labels:  swig
swig-srilm
SWIG Wrapper for the SRILM toolkit
Stars: ✭ 33 (+50%)
Mutual labels:  swig
FABGen
C++ binding generator for CPython 3.x (x>=2), Lua 5.3 and Go
Stars: ✭ 26 (+18.18%)
Mutual labels:  swig
sails-jwt-login
How to implement login with JWT (JSON Web Tokens) in Sails 1.0
Stars: ✭ 18 (-18.18%)
Mutual labels:  sailsjs
idajava
Java integration for Hex-Rays IDA Pro
Stars: ✭ 25 (+13.64%)
Mutual labels:  swig
sails-hook-swagger-generator
A tool to help generate Swagger specification documentation based on OAS 3.0 for Sails APIs
Stars: ✭ 71 (+222.73%)
Mutual labels:  sailsjs
canorus
Canorus is a free cross-platform music score editor
Stars: ✭ 25 (+13.64%)
Mutual labels:  swig
sails-hook-multitenant
A multitenant Sails.js 1.X hook for Waterline ORM.
Stars: ✭ 15 (-31.82%)
Mutual labels:  sailsjs
go-snowboy
Go wrapper for Kitt-AI's snowboy audio detection library.
Stars: ✭ 40 (+81.82%)
Mutual labels:  swig
express-mvc
A light-weight mvc pattern for express framework with minimum dependencies
Stars: ✭ 23 (+4.55%)
Mutual labels:  sailsjs
ForTrilinos
ForTrilinos provides portable object-oriented Fortran interfaces to Trilinos C++ packages.
Stars: ✭ 24 (+9.09%)
Mutual labels:  swig
yadoms
Yadoms is open source, simple, powerfull, flexible and multiplatforms domotic solution.
Stars: ✭ 56 (+154.55%)
Mutual labels:  swig
sp-sails-chat
Sails.js Chat Project tutorial for Sitepoint
Stars: ✭ 20 (-9.09%)
Mutual labels:  sailsjs
PyMFEM
Python wrapper for MFEM
Stars: ✭ 91 (+313.64%)
Mutual labels:  swig
FoxNN
Simple neural network
Stars: ✭ 20 (-9.09%)
Mutual labels:  swig

DouMi blog platform

Build Status Coverage Status Analytics stable MIT Licence

A Sails application. It is used for recording the process from the loving to marriage, all happiness and happy time are showing with only five pages. Each pages has the unique theme:

This blog platform is based on the sailsjs web framework. It contains three parts:

  • blog index page. It shows the navigation of blog platform and some key information about DouMi blog.
  • blog show page. It shows all posts which were published in this blog platform.
  • about DouMi page. It will introduce the DouMi in details.

This blog platform has following tech stack:

  • SailsJs
  • MongoDb
  • Async
  • RequireJs
  • Jquery
  • Bootstrap
  • bcrypt + passport
  • swig
  • SASS
  • grunt
  • marked
  • node-schedule

Now DouMi blog has been deployed in the AliYun, you can visit it via: http://blog.5udou.cn

How to contribute

If you has intrested in developing this project, your correction/addition is so welcome.Just fork it and the pull a new request.

How to deploy it in the local environment

Step 1 Install nodejs and npm:

https://nodejs.org/download/

And npm has been imbedded with nodejs, and it will be installed with nodejs installation.

Step 2 Install sails:

$ npm -g install sails

Step 3 Clone the codes from gitlab:

$ git clone https://github.com/linxiaowu66/sails-blog-platform.git

Step 4 Install Dependency and devDependency packages:

Move to the project root directory, and run below commands to install other packages, it is because in this project we also used some third-party package. Bower is an enhanced package management tool which can handle the package dependence well.

$ npm -g install bower
$ npm i
$ bower i

This project is dependence with the SASS, so you should install the ruby and compass before run the app. Install steps as follow(AliYun--Ubuntu):

# apt-get install Python-software-properties
# apt-add-repository ppa:brightbox/ruby-ng
# apt-get update
# apt-get install ruby2.1 ruby2.1-dev
# gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/
# gem install compass

NOTE: If you can assess the http://rubygem.org, you can add the taobao mirrors to gem source just as step 3.

deploy it under root is really a bad idea, but in case you're basted, try:

# npm install --unsafe-perm
# bower i --allow-root

Step 5 In development mode, you can use 'localDiskDb'. Then no need to install database in development mode. But in production mode, MongoDb is used in this project.

Running the mongoDb,you can type these:

mongod -fork --dbpath=/home/mongodb_data/ --logpath=/home/mongodb_log/mongodb.log --logappend &

Then forever run the sails app:

cd yourProject

NODE_ENV=production forever start app.js

Step 6 In this project, we use mocha [ http://mochajs.org/ ] for unit test. Unit test is a good way to protect your code. To install mocha:

$ npm install -g mocha

Step 7 In local, you can run 'sails lift' or 'sails console' in the root directory of this project to startup the server. Suppose the port 1337 used by server to listen the connect request, then you can visit the server in browser with url 'http://localhost:1337'.

Troubleshooting tips:

You can run 'sails lift --silly', then all detail log will be printed in console. Also for troubleshooting, it is better to use the interactive mode with 'sails conole'

TODO

  • 标签支持根据标签下文章个数进行大小调整并排序(或者使用云标签的方式)
  • 文章增加每天阅读人数的统计
  • 支持RSS
  • 文章中的图片支持点击放大查看
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].