Skip to content

domenipavec/django-angular-bootstrap-docker

Repository files navigation

django-angular-bootstrap-boilerplate

This is a docker version of https://github.com/iktw/django-angular-bootstrap-boilerplate, modified with newer versions, python3, less instead of sass, source maps, ... This is a boilerplate to quickly get started with your django project. The main includes of this boilerplate is Django, AngularJs and bootstrap.

What's included?

  • Django 1.8.4
  • Django REST framework
  • Django REST Swagger
  • Django REST JWT
  • Django enumerify
  • Django autoslug
  • Django filter
  • Markdown
  • Pillow
  • Sorl thumbnail
  • Gulp
  • Bower
  • AngularJS
  • AngularJS Bootstrap
  • AngularJS Ui router
  • Restangular
  • Angular Translate
  • Lodash
  • jQuery
  • Bootstrap

Usage

  • $ pip3 install -r requirements-dev.txt
  • $ fab dev

Project dir structure

  • myprojectdir
  • myprojectdir/env
  • myprojectdir/myproject

What our gulp watch does

'gulp watch' will create 3 files: 'application.js' which includes our application, 'application.packages.min.js' which includes all of our packages and 'application.min.css' which includes all of our styles. Our js-files is divided into two files because of the performance when developing, otherwise gulp will compile all of our packages and application files every time we'll make a change.

To compile our production js-file (which includes both our packages and application) enter 'gulp build-js-production'

Front-end directories

  • Angular files: /assets/js/angular/
  • Angular templates: /assets/ng-templates/
  • Javascript externals files: /assets/js/external
  • Less files: /assets/less/

Output files (in browser)

  • CSS: /static/css/application.min.css
  • JS: /static/js/application.production.min.js
  • JS: /static/js/application.packages.min.js
  • JS: /static/js/application.js

About

A django boilerplate in docker with bootstrap, angular, gulp and bower pre-installed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published