Skip to content

Website used by new clients to enter the facts of their case

Notifications You must be signed in to change notification settings

RHoKAustralia/mel-2018-11_anika-legal_clerk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clerk

This site is used by new Anika clients who want to submit their legal problem. Clients may submit the facts of their case using a structured form interface. Their case file is then entered into our case managment system.

This is a speculative project built out for Random Hacks of Kindness (Melbourne, Summer 2018).

Depending on the job, office clerks might answer phones, filing, data processing, faxing, envelope stuffing and mailing, message delivery, running errands, sorting incoming mail and much more. (source)

CircleCI

Development

Prerequisites

You will need:

For Ubuntu, the install looks something like this:

# Become root
sudo -i
# Install Docker prequisites
apt update
apt install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

# Add docker repository to apt
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

# Install Docker
apt update
apt install docker-ce

# Download docker-compose binary
curl -L \
    "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" \
    -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

# Verify that Docker works
docker run hello-world

# Verify that Docker Compose works
docker-compose version

Getting Started

You first want to build the Docker image that we'll be using. This Docker image is based on the ubuntu:bionic base image, with the addition of Python 3 and NodeJS, which are installed in Dockerfile.base. The Ubuntu + Python 3 + NodeJS image has been uploaded to Docker Hub as anikalaw/clerkbase.

To build your local Docker image:

# This will download the ~300MB anikalaw/clerkbase image and add some extra stuff.
docker-compose build

The build step will run the steps in Dockerfile and install any required Python and NodeJS libraries. To run the development environment:

# Setup the development database for Django
docker-compose run web ./manage.py migrate

# Bring up development containers - will show Django dev server logs
docker-compose up web

# In another console window/tab, run this to see webpack output
docker-compose run --service-ports webpack

Now you should be able to visit http://localhost:8000 and see the Clerk site.

About

Website used by new clients to enter the facts of their case

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.9%
  • Python 13.1%
  • Shell 4.5%
  • HTML 3.2%
  • Makefile 2.3%
  • CSS 1.9%
  • Dockerfile 1.1%