noelrappin / mstwjs_code Goto Github PK
View Code? Open in Web Editor NEWCode repository for Master Space and Time With JavaScript
Code repository for Master Space and Time With JavaScript
Hi,
Is there anything specific with mysql as to why thats required?
Trying to help a friend setup on a windows machine and mysql is failing to install :(
Wondering if it might be easier to revert to the sqlite option...
Thanks,
Chris
Railsinstaller is Win/Mac only. All I know about Ruby is that every time I've tried to install it on Ubuntu and get it working, I was left wondering how anything that's such a PITA to get up and running could be so popular. Nevertheless, I bash
ed it out. (Linux humor :) .)
UPDATE: The default jasminerice gem in the Gemfile does not play nicely with rvm. See http://www.ihid.co.uk/blog/using-jasmine-in-a-rails-engine and:
rm -r tmp/cache/assets
) to remove any leftovers in the cache.cd ~
\curl -sSL https://get.rvm.io | bash -s -- --ignore-dotfiles
echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc [footnote 1]
source ~/.rvm/scripts/rvm
rvm install 1.9.3 [footnote 2]
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
vi ~/.bashrc [footnote 1]
Add source ~/.nvm/nvm.sh
to the bottom of .bashrc. Save. Quit.
nvm ls-remotes
nvm install <version> [footnote 3]
nvm use <version>
cd mstwjs_code [footnote 4]
bundle install [footnote 5]
vi config/database.yml
Find 3 instances of /tmp/mysql.sock
and replace with /var/run/mysqld/mysqld.sock
. [footnote 6]
rake mstwjs:setup
rails server
Navigate to localhost:3000 in your web browser. You should get a web page back.
Footnotes
sudo apt-get install libmysql-ruby libmysqlclient-dev
and try again.head -25 /etc/mysql/my.cnf
to confirm the socket file path.Elapsed time: 2 hours.
Because this is the only book I've found that teaches JavaScript, TDD/BDD, and a practical, real-world workflow in an integrated fashion. I can buy half a dozen books covering JavaScript, jQuery, Jasmine, and the rest, but they're disconnected and don't show how to make everything work together.
And, seriously, consider writing Book 5 on Node.js. It's a logical progression and would let you get rid of the Ruby/Rails dependency on Node. You can probably store the data in a JSON file and keep it in memory and eliminate the MySQL dependency too. Alternatively, CouchDB/MongoDB seem to be popular in the Node community.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.