Blicblock is a game your Sims in The Sims 4 can play on the computer. I thought it would be fun to recreate the game. Our Sims shouldn't have all the fun!
BlickblockJS is built using AngularJS, Bower, Yeoman, and Twitter Bootstrap.
You need Ruby, RubyGems, Bundler, Node.js, and PostgreSQL.
bundle
Create a blicblockjs
role in PostgreSQL:
% psql
psql (9.2.1)
Type "help" for help.
sarah=# CREATE USER blicblockjs WITH PASSWORD 'password';
CREATE ROLE
sarah=# ALTER USER blicblockjs WITH SUPERUSER;
ALTER ROLE
Or via command line: createuser -P -s -e blicblockjs
bundle exec rake db:create db:migrate db:seed
cd client/
npm install
npm install -g bower
bower install
npm install -g grunt-cli
grunt serve
to watch for file changes and to launch the Rails server.
RAILS_ENV=test bundle exec rake db:create db:migrate
RAILS_ENV=test bundle exec rspec
cd client/
npm install
grunt test
git remote add heroku git@heroku.com:yourherokuapp.git
heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
git push heroku master
heroku addons:add heroku-postgresql
heroku addons:add pgbackups
heroku run rake db:migrate
heroku ps:scale web=1
heroku config:add NODE_ENV=production
heroku pg:backups capture
curl -o latest.dump `heroku pg:backups public-url`
To load the dump file locally:
pg_restore --verbose --clean --no-acl --no-owner -h localhost -U blicblockjs -d blicblockjs_development latest.dump
Video of my Sim playing Blicblock