Giter Site home page Giter Site logo

chopstix's Introduction

Requirements

MySQL Community Server

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;

Python

Make sure you're running python 2.7: http://www.python.org/download Verify with:

$ python --version

Git

  • 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

Virtual Env

$ sudo easy_install pip
$ sudo pip install virtualenv

Node

You always need a good Node for one reason or another: Get the binary and install it from http://nodejs.org

Bower

We user bower to manage our front-end packages

$ npm install -g bower

Install Requirements

pip

  • Install back-end packages and dependencies
$ cd ~/projects/chopstix
$ pip install -r requirements.txt

bower

  • Install front-end packages and dependencies
$ cd ~/projects/chopstix/app
$ bower install

Configure Settings

Flask Settings File

  • 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

Build Schema

  • Create a database framework if you don't have one already
$ cd ~/projects/chopstix
$ python
>>> from chopstix import db
>>> db.create_all()

Running Locally

  • Load virtual environment
$ cd ~/projects/chopstix
$ source venv/bin/activate
  • Run a server
$ cd ~/projects/chopstix
$ ./run.py

Running on Heroku

  • 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

You're done :)

Nailed it!

chopstix's People

Contributors

therealtomrose avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

gangstead

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.