Giter VIP home page Giter VIP logo

blog's Introduction

Blog

A blog platform.

Warning

This repo is under active development, and not fully functional yet, don't use it for production environment.

Prerequisites

  1. ruby-compass
  2. SSDB
  3. go
  4. bower

Installation

WARNING
Only have tested on Ubuntu 14.04, which has relatively new version of the prerequisites.

Install Go Language

The golang Debian package have already been included in Ubuntu 14.04 LTS.

sudo apt-get install golang

If you are running in a lower version, you could manually add the ppa of golang and install from that repository as follows:

sudo add-apt-repository ppa:gophers/go
sudo apt-get update
sudo apt-get install golang-stable

(If you don't have add-apt-repository, run "sudo apt-get install python-software-properties".) Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile

export PATH=$PATH:/usr/local/go/bin

You will also need a workspace for Go

mkdir $HOME/go

Add these lines to your /etc/profile or $HOME/.profile as well

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

Install Bower

Bower depends on Node and npm, hence we need to resolve these first.

Ubuntu 14.04 ships with node.js, just install it via

sudo apt-get install nodejs

WARNING
node in Ubuntu 14.04 is a completely different package which has absolutely no connection with nodejs. Make sure you did not install the package node previously. In Ubuntu 14.04, node.js uses the binary command nodejs, not just node like in some other platforms. However, bower really needs nodejs to be node to function correctly. Hence, you need to manually create a symbolic link /usr/bin/node

sudo ln -s /usr/bin/nodejs /usr/bin/node

You will also need to install npm as in Ubuntu 14.04, it's not together with nodejs.

sudo apt-get install npm

Install SSDB

SSDB is a high performace key-value(key-string, key-zset, key-hashmap) NoSQL database, an alternative to Redis.

The easiest way is to compile and install SSDB from its git repo.

cd
wget --no-check-certificate https://github.com/ideawu/ssdb/archive/master.zip
unzip master
cd ssdb-master
make
sudo make install

Now you can start it as daemon

./ssdb-server -d ssdb.conf

and stop it via

kill `cat ./var/ssdb.pid`

You can specify the ip and port that ssdb listen to by modifying the ssdb.conf

Install ruby-compass

You might have already installed Ruby, but if you haven't install it via,

sudo apt-get install ruby

Now install compass

sudo gem install compass

Configuration

Now you have only a few steps to follow before you can see it!

First, you need to get the repo,

git clone https://github.com/dyzdyz010/Blog.git

change directory into Blog

cd Blog

First, we'll get the dependencies using go get:

go get

Then, get foundation using bower

cd static
bower install

In Blog root folder, compile scss to css files we need

compass compile

Now you can start the database by going into ssdb installation path and hit

./ssdb-server -d ssdb.conf

Go back to the root directory of Blog, and start the server

go run main.go

blog's People

Contributors

tsenmu avatar

Watchers

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