brew install redis postgresql
launchctl load /usr/local/opt/postgresql/homebrew.mxcl.postgresql.plist
redis-server /usr/local/etc/redis.conf
install Nginx: http://nginx.org/en/linux_packages.html#stable
install PostgreSQL: https://wiki.postgresql.org/wiki/Apt
git clone https://github.com/creationix/nvm.git ~/.nvm && cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`
. ~/.nvm/nvm.sh
nvm install stable
echo '. ~/.nvm/nvm.sh' >> ~/.bashrc
echo 'nvm use stable' >> ~/.bashrc
postgres=> create user hieatuser nosuperuser replication encrypted password 'hieatpass';
postgres=> create database hieat_site owner=hieatuser template=template0 encoding='UTF-8' lc_collate='zh_CN.UTF-8' lc_ctype='zh_CN.UTF-8';
git clone https://github.com/yangbajing/hieat-app.git
cd hieat-app/front-end
npm install && npm run build
cd ../
./sbt
[hieat] $ testOnly me.hieat.site.data.repo.SchemaTest
[hieat] $ ~ run
注意 [hieat] $ testOnly me.hieat.site.data.repo.SchemaTest
这一步骤不要忘记,创建数据库。
访问: http://localhost:9000/sign/up 注册用户