A boilerplate application for Django web applications.
|
|
10 роки тому | |
|---|---|---|
| hackathon_starter | 10 роки тому | |
| .hgignore | 10 роки тому | |
| README.md | 10 роки тому | |
| bower.json | 10 роки тому | |
| requirements.txt | 10 роки тому |
Django Hackathon Starter aims to be a project which will aggegrate data from several APIs, producing a RESTful API which can be consumed by a client (also intended to be built).
Our deployment can be found here.
In order to run this project, do the following:
# Install the requirements
pip install -r requirements.txt
# Perform database migrations
python manage.py migrate
# Run the server
python manage.py runserver
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.
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
http://127.0.0.1:8000/hackathon/
# Second test route
http://127.0.0.1:8000/hackathon/test