Skip to content
Image Labeling App built with AngularJS+Material+django-rest-framework
JavaScript Python HTML Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
conf/nginx
.gitignore
Dockerfile
LICENSE
Makefile
README.md
docker-compose.yml
launch_gunicorn.sh
requirements.txt

README.md

drf-image-app

Basic django-rest-framework app for uploading and labeling images.

I found this useful for sorting and sending out wedding images to people. It lets you upload images, add labels to them which it can then filter on, and uses easy-thumbnail (which is useful).

Originally it was just using docker and serving everything, but I eventually decided to use nginx to server static files.

This project is a good example of:

  • a REST API via django-rest-framework
  • tied into postgres for production
  • delivered via nginx
  • using docker.
  • using easy_thumbnail

I may later decide to write some sample tasks, or something useful to add in rabbit and celery to demonstrate.

The icons are from material-design-icons, so if you need more, you can install that bower component: fair warning though, it's huge.

Effectively it's a basic single-page angular front-end that is rendered via django alongside the APIs to support it.

If you're new to django-rest-framework you might find this helpful as it utilizes custom pagination, filters, easy_thumbnail, and other facets of the platform.

It uses docker for postgres and django, however, you can run it directly without any issues.

Usage

If you want to run it in "production mode" you can run docker-compose up

If you want to run it in "development mode" you can run python manage.py runserver. If you want others to be able to get to it you need to bind, so, python manage.py runserver 0.0.0.0:8000

You can’t perform that action at this time.