GRAB THE FREAKING 64 BIT VERSION. NOT THE 32! I WILL END YOU!
-
Download the Mac OS X (x86, 64-bit), DMG from mysql.com and install the pkg
-
Add MySQL to your path:
$ echo 'export PATH=/usr/local/mysql/bin:$PATH' >> ~/.bash_profile
- set root password to something personally secret:
$ mysqladmin -u root password
- Create a local database:
$ mysql -u root -p
mysql> CREATE DATABASE IF NOT EXISTS chopstix;
mysql> CREATE USER 'chop_user'@'localhost' IDENTIFIED BY 'chopstixRock$';
mysql> GRANT ALL ON chopstix.* TO 'chop_user'@'localhost';
mysql> flush privileges;
Make sure you're running python 2.7: http://www.python.org/download Verify with:
$ python --version
- Get a github.com account.
- Download the github binary and install it. (This will automatically update your version of git if it needs it.)
- Verify with:
$ git --version
- Get github.com access to the repo if you need to commit.
- Clone Chopstix git repo:
$ mkdir ~/projects
$ mkdir ~/projects/chopstix
$ cd ~/projects
$ git clone [email protected]:tsorensen23/chopstix.git
$ sudo easy_install pip
$ sudo pip install virtualenv
You always need a good Node for one reason or another: Get the binary and install it from http://nodejs.org
We user bower to manage our front-end packages
$ npm install -g bower
- Install back-end packages and dependencies
$ cd ~/projects/chopstix
$ pip install -r requirements.txt
- Install front-end packages and dependencies
$ cd ~/projects/chopstix/app
$ bower install
- Make a local.py settings file by copying the template file
$ cp ~/projects/chopstix/chopstix/settings/local-template.py ~/projects/chopstix/chopstix/settings/local.py
- Walk through the settings file and configure it as necessary for your local environment
- Create a database framework if you don't have one already
$ cd ~/projects/chopstix
$ python
>>> from chopstix import db
>>> db.create_all()
- Load virtual environment
$ cd ~/projects/chopstix
$ source venv/bin/activate
- Run a server
$ cd ~/projects/chopstix
$ ./run.py
- Open a web browser and go to http://127.0.0.1:5000/
- Create a Heroku stack
$ heroku create
- Configure Heroku Python Buildpack
$ heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-python
- Push to Heroku
$ git push heroku master
- Open heroku in a web browser to experience the magic:
$ heroku open
Nailed it!