All Projects → creativecommons → legaldb

creativecommons / legaldb

Licence: MIT License
CC Legal Database: curated repository of Case Law and Scholarship data from around the world in a Django based website.

Programming Languages

HTML
75241 projects
python
139335 projects - #7 most used programming language
SCSS
7915 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects
Procfile
174 projects

Projects that are alternatives of or similar to legaldb

creativecommons.github.io-source
Source files for CC Open Source website
Stars: ✭ 51 (+131.82%)
Mutual labels:  creative-commons, hacktoberfest2020
web crawler
爬蟲練習(youtube,dcard,kkbox,發票,ptt) 🕷️
Stars: ✭ 14 (-36.36%)
Mutual labels:  hacktoberfest2020
NASSCOM-MHRD-IOT-Practical-Module 1-2
Arduino on TinkerCad
Stars: ✭ 26 (+18.18%)
Mutual labels:  hacktoberfest2020
Pacman-Game
This is a pacman game made using HTML, CSS and Javascript only.
Stars: ✭ 42 (+90.91%)
Mutual labels:  hacktoberfest2020
hacktoberfest20
Participate in Hacktoberfest by contributing to any Open Source project on GitHub! Here is a starter project for first-time contributors. #hacktoberfest20. Don’t forget to read the README.md for guidance.
Stars: ✭ 18 (-18.18%)
Mutual labels:  hacktoberfest2020
Hacktoberfest2021
This Repository for Hacktoberfest Fest 2021. Contribute anything for your T-shirt, must be relevant that can add some value to this repo.
Stars: ✭ 57 (+159.09%)
Mutual labels:  hacktoberfest2020
iiitdmj-gpa
GPA Calculator + Quiz Bot for IIITDM Jabalpur
Stars: ✭ 16 (-27.27%)
Mutual labels:  hacktoberfest2020
openverse-api
The Openverse API allows programmatic access to search for CC-licensed and public domain digital media.
Stars: ✭ 41 (+86.36%)
Mutual labels:  creative-commons
color-extractor
Biancoir is website that provide color extraction from an image with quantization algorithm.
Stars: ✭ 12 (-45.45%)
Mutual labels:  hacktoberfest2020
CuboidalDrift
A casual, fun, 3D indie game made with Unity
Stars: ✭ 13 (-40.91%)
Mutual labels:  hacktoberfest2020
bagisto-bulk-upload
The Laravel eCommerce Bulk Upload allows the admin to create and add a bulk number of products into Bagisto online store.
Stars: ✭ 16 (-27.27%)
Mutual labels:  hacktoberfest2020
ate-onde-chega-cultura
Mapa interativo dos equipamentos culturais em Portugal
Stars: ✭ 18 (-18.18%)
Mutual labels:  hacktoberfest2020
Python
Repository for Python codes and algos. Star the repo too.
Stars: ✭ 102 (+363.64%)
Mutual labels:  hacktoberfest2020
DataEngineering
This repo contains commands that data engineers use in day to day work.
Stars: ✭ 47 (+113.64%)
Mutual labels:  hacktoberfest2020
kgbotka
Twitch/Discord Chat Bot that works for KGB monkaS
Stars: ✭ 15 (-31.82%)
Mutual labels:  hacktoberfest2020
git-autocommit
A bash script to automate pushing changes to github
Stars: ✭ 17 (-22.73%)
Mutual labels:  hacktoberfest2020
operationcode-pybot
Operation Code's Official Slackbot
Stars: ✭ 29 (+31.82%)
Mutual labels:  hacktoberfest2020
AzUnzipEverything
A simple Azure Function to Unzip files from a blob storage to another one
Stars: ✭ 24 (+9.09%)
Mutual labels:  hacktoberfest2020
MapComplete
A small and easy OpenStreetMap editor
Stars: ✭ 101 (+359.09%)
Mutual labels:  hacktoberfest2020
UtilityBelt
Fun console application
Stars: ✭ 16 (-27.27%)
Mutual labels:  hacktoberfest2020

legaldb

MIT license Code style: black

CC Legal Database: curated repository of Case Law and Scholarship data from around the world in a Django based website.

legaldb.creativecommons.org

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Contributing

See CONTRIBUTING.md. It contains some general instructions that should be followed when contributing to any of the Creative Commons open-source repositories.

Development setup

Copy .env.template and set environment variables (like DJANGO_DEBUG_ENABLED=True for local development and testing) and secret keys in a .env file.

cp .env.template .env

Using Docker-Compose

Ensure that you have Docker and Docker Compose installed on your system For installation instructions refer: Get Docker | Docker Documentation

Start (and Build) the Servers

Start Django server (backed by PostgreSQL server ) at 127.0.0.1:8000:

docker-compose up

Run Migrations

Run the migrations to create database schema (we use Postgresql in this case):

docker compose exec app ./manage.py migrate

(Required after initial build)

Execute Commands

To execute any commands inside the app docker container, follow this format:

docker compose exec app ./manage.py DJANGO COMMAND HERE

or

docker compose exec app sh -c "SHELL COMMAND HERE"

Examples:

  • Create a Super User:
    docker compose exec app ./manage.py createsuperuser
  • Collect static files:
    docker compose exec app ./manage.py collectstatic
  • Compress content:
    docker compose exec app ./manage.py compress
  • Run tests:
    docker compose exec app ./manage.py test

Using Pipenv

NOTE: The prefered method is Using Docker-Compose.

To follow these instructions, Python 3 and Pipenv are required.

Install dependencies with pipenv.

pipenv install --dev

Run the migrations to create the database (we use Postgresql in this case).

pipenv run ./manage.py migrate

The next step is to create an admin account for Django admin.

pipenv run ./manage.py createsuperuser

Finally you can start a development server with:

pipenv run ./manage.py runserver

and see a local version of the website at 127.0.0.1:8000.

Webpack

Open another terminal and navigate to webpack folder using:

cd webpack

To install webpack dependencies use:

npm install

or alternatively to install from package-lock.json use:

npm ci

If you want to make changes to scss files during development run:

npm run watch

otherwise run the following command

npm run build

After made code changes and before commit, check code style from main directory using.

Code Style

After making changes in code and before commit, check code style.

pipenv run isort .
pipenv run black .
pipenv run flake8 .

Development Blog Posts

Posts in the Outreachy May 2020 round: CC Legal Database series

Deploy to Heroku

See deploy_to_heroku.md.

License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].