Git Product home page Git Product logo

clerk's Introduction

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.

clerk's People

Contributors

mattsegal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.