From 0c9ea7b6c01575e472fac711311594bc7bfa239e Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Tue, 25 Mar 2014 13:13:17 +0100 Subject: [PATCH] - Fixed package.json - Removed unused task from fable - Added base README --- README.md | 26 ++++++++++++++++++++++++++ fabfile.py | 34 ---------------------------------- package.json | 2 +- 3 files changed, 27 insertions(+), 35 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..fa267c2 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +shelfzilla +========== + +## Prepare environment for local development + +``` +# Check that everything is installed +fab doctor + +# Setup NPM/Virtualenv/Database +fab setup_environment + +# Executes the server +fab runserver +``` + +## Dependencies + +- Nodejs +- Python 2.7 with virtualenv and pip +- grunt-cli installed as global resource + +# First install + +The first time you use `fab setup_environment` django will ask for a initial superadmin user, be sure to enter **an email address as username** or the login form won't allow you to access the site. You can enter anything since this is a local environment. + diff --git a/fabfile.py b/fabfile.py index 8201f04..135a75c 100644 --- a/fabfile.py +++ b/fabfile.py @@ -210,37 +210,3 @@ def rungrunt(): Executes grunt """ run('grunt --force') - - -# -# SETUP -# -@task_environment -@task -@hosts(['local']) -def setup(): - execute(setup_virtualenv) - print(yellow('Creating project based on template')) - project_name = prompt('Project name? (lowercase, a-z or _)') - with virtualenv(): - run('django-admin.py startproject ' - '--template=$PWD/template {} .'.format(project_name) - ) - - # Find and replace {{ project_name }} inside gruntfile - run( - "sed -i -e 's/{{ project_name }}/%s/g' ./gruntfile.coffee" % - project_name - ) - # Find and replace {{ project_name }} inside package.json - run( - "sed -i -e 's/{{ project_name }}/%s/g' ./package.json" % - project_name - ) - - # Remove sed backup files - run("rm *-e") - - print(yellow('Finished!')) - - print('If youre ready to work, run fab doctor & fab setup_environment') diff --git a/package.json b/package.json index ea56fe5..b61c903 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,6 @@ "grunt-contrib-watch": ">=0.4.0", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-clean": "~0.5.0", - "grunt-bower": "^0.9.1", + "grunt-bower": "^0.9.1" } }