|
@@ -29,11 +29,23 @@ First, install `bower`:
|
|
|
npm install -g bower
|
|
npm install -g bower
|
|
|
|
|
|
|
|
Then:
|
|
Then:
|
|
|
-
|
|
|
|
|
|
|
+ # In the same directory as requirements.txt
|
|
|
bower install
|
|
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.**
|
|
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.**
|
|
|
|
|
|
|
|
|
|
+Then:
|
|
|
|
|
+ # move bower_components into static folder
|
|
|
|
|
+ mv bower_components/ hackathon_starter/hackathon/static
|
|
|
|
|
+
|
|
|
|
|
+To install the front-end dependencies for the AngularJS client, do the following:
|
|
|
|
|
+
|
|
|
|
|
+ cd public
|
|
|
|
|
+ bower install
|
|
|
|
|
+ # Rename bower_components folder to vendor
|
|
|
|
|
+ mv bower_components/ vendor/
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
## Testing
|
|
## Testing
|
|
|
|
|
|
|
|
This project aims to be as close to 100% tested as possible. For a good guide to testing using Python and `Mock`, `Nosetests` and `Unittests` libraries, please [read here](http://docs.python-guide.org/en/latest/writing/tests/).
|
|
This project aims to be as close to 100% tested as possible. For a good guide to testing using Python and `Mock`, `Nosetests` and `Unittests` libraries, please [read here](http://docs.python-guide.org/en/latest/writing/tests/).
|
|
@@ -44,7 +56,7 @@ To run the tests:
|
|
|
|
|
|
|
|
## Code evaluation
|
|
## Code evaluation
|
|
|
|
|
|
|
|
-In order to write clean code with a consistent style guide, we'll be using `Pylint` to maintain our code. Pylint will display a ton of messages regarding things that should be fixed. A sample output from running `pylint views.py` is shown below:
|
|
|
|
|
|
|
+In order to write clean code with a consistent style guide, we'll be using `Pylint` to maintain our code. Pylint will display a ton of messages regarding things that should be fixed.
|
|
|
|
|
|
|
|
|
|
|
|
|
## RESTful endpoints
|
|
## RESTful endpoints
|