Django and Angular along with workflow tools like npm, gulp, bower, and jade.
- Pip
- Virtual Env
- Postgresql
- NPM
- Gulp
- Bower
$ sudo easy_install pip
$ pip install virtualenv
http://www.postgresql.org/download/macosx/
- Download Postgres.app
- Install and Run
- Install
$ sudo npm install gulp -g
$ sudo npm install bower -g
$ cd ~/
$ mkdir envs
$ cd envs
virtualenv __ProjectName__
$ cd __ProjectName__
$ cd ~/envs/
$ mkdir __ProjectName__
$ cd __ProjectName__
$ git clone https://github.com/theyoungastros/djangular-boilerplate app
$ cd ~/envs/__ProjectName__/app
$ npm install
$ bower install
$ gulp build
$ vi ~/envs/__ProjectName__/app/root/settings.py
Replace database settings with the following:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'DATABASE_NAME',
'USER': '*YOUR_USERNAME*',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '5432',
},
}
Replace the following:
PATH="$VIRTUAL_ENV/bin:$PATH"
export PATH
with:
PATH="$VIRTUAL_ENV/bin:$PATH"
PATH="/Applications/Postgres.app/Contents/Versions/9.4/bin:$PATH"
export PATH
$ cd ~/envs/__ProjectName__/
$ source bin/activate
$ cd app
$ pip install -r requirements.txt
$ psql
$ > create database DATABASE_NAME;
$ > \q
$ python app/manage.py migrate
$ python app/manage.py createsuperuser
# follow prompts
$ python app/manage.py runserver