David Leonard před 10 roky
rodič
revize
500aff9b9f
3 změnil soubory, kde provedl 35 přidání a 1 odebrání
  1. 2 1
      .hgignore
  2. 14 0
      README.md
  3. 19 0
      bower.json

+ 2 - 1
.hgignore

@@ -2,4 +2,5 @@ syntax: glob
 
 .DS_Store
 db.sqlite3
-*.pyc
+*.pyc
+bower_components/

+ 14 - 0
README.md

@@ -18,6 +18,20 @@ In order to run this project, do the following:
     # Run the server
     python manage.py runserver
 
+## Front End dependencies
+
+This project relies on Bower for all front end libraries, to avoid pushing up large libraries such as `jQuery` and `Bootstrap`. To install `bower`, you will need to install `npm`, which now comes bundled with `node.js`. To install `npm`, simply install [node as follows](https://github.com/joyent/node/wiki/installing-node.js-via-package-manager). 
+
+First, install `bower`:
+
+    npm install -g bower
+
+Then:
+
+    bower install
+
+This will download and extract all the packages listed within `bower.json`. **Under no circumstance should any front-end libraries manually be pushed up to the repository.**
+
 Two routes have currently been set up, which are located at:
 
     # First test route

+ 19 - 0
bower.json

@@ -0,0 +1,19 @@
+{
+  "name": "django-hackathon-starter",
+  "version": "0.0.0",
+  "authors": [
+    "David Leonard <sephirothcloud1025@yahoo.com>"
+  ],
+  "description": "Django boilerplate project for hackathons",
+  "keywords": [
+    "Django",
+    "Python",
+    "API",
+    "RESTful"
+  ],
+  "license": "MIT",
+  "dependencies": {
+    "bootstrap": "~3.3.4",
+    "jquery": "~2.1.3"
+  }
+}