A blog platform.
This repo is under active development, and not fully functional yet, don't use it for production environment.
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
You will also need a workspace for Go
Add these lines to your /etc/profile or $HOME/.profile as well
export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin
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
nodein 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
nodelike in some other platforms. However, bower really needs nodejs to be node to function correctly. Hence, you need to manually create a symbolic link
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
sudo apt-get install npm
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
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
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
First, we'll get the dependencies using
Then, get foundation using bower
cd static bower install
In Blog root folder, compile scss to css files we need
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