Updated readme, legal & ci/cd
Some checks failed
Build / Build & Push Dockerfile (push) Failing after 7s
Some checks failed
Build / Build & Push Dockerfile (push) Failing after 7s
This commit is contained in:
parent
b4ce437ac0
commit
f4111cc264
14
.github/workflows/build.yaml
vendored
Normal file
14
.github/workflows/build.yaml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
name: Build
|
||||||
|
run-name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
name: Build & Push Dockerfile
|
||||||
|
uses: ztimson/actions/.github/workflows/docker.yaml@develop
|
||||||
|
with:
|
||||||
|
name: ztimson/oacpl
|
||||||
|
repository: ${{github.server_url}}/${{github.repository}}.git
|
||||||
|
pass: ${{secrets.DEPLOY_TOKEN}}
|
@ -18,3 +18,5 @@ RUN python3 manage.py migrate --no-input
|
|||||||
RUN python3 manage.py collectstatic --no-input
|
RUN python3 manage.py collectstatic --no-input
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
ENTRYPOINT python3
|
||||||
|
CMD ["manage.py", "runserver", "0.0.0.0:8000"]
|
||||||
|
11
LICENSE
Normal file
11
LICENSE
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
Copyright (c) 2023 Zakary Timson
|
||||||
|
|
||||||
|
All Rights Reserved.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
93
README.md
93
README.md
@ -1,12 +1,95 @@
|
|||||||
# OACPL
|
<!-- Header -->
|
||||||
|
<div id="top" align="center">
|
||||||
|
<br />
|
||||||
|
|
||||||
[See Live](https://oacpl.org/)
|
<!-- Logo -->
|
||||||
|
<img src="static/main/img/logo.png" alt="Logo" width="200" height="200">
|
||||||
|
|
||||||
|
<!-- Title -->
|
||||||
|
### OACPL
|
||||||
|
|
||||||
|
<!-- Description -->
|
||||||
|
Ontario Association of Child Protection Lawyers
|
||||||
|
|
||||||
|
<!-- Repo badges -->
|
||||||
|
[![Version](https://img.shields.io/badge/dynamic/json.svg?label=Version&style=for-the-badge&url=https://git.zakscode.com/api/v1/repos/ztimson/oacpl/tags&query=$[0].name)](https://git.zakscode.com/ztimson/oacpl/tags)
|
||||||
|
[![Pull Requests](https://img.shields.io/badge/dynamic/json.svg?label=Pull%20Requests&style=for-the-badge&url=https://git.zakscode.com/api/v1/repos/ztimson/oacpl&query=open_pr_counter)](https://git.zakscode.com/ztimson/oacpl/pulls)
|
||||||
|
[![Issues](https://img.shields.io/badge/dynamic/json.svg?label=Issues&style=for-the-badge&url=https://git.zakscode.com/api/v1/repos/ztimson/oacpl&query=open_issues_count)](https://git.zakscode.com/ztimson/oacpl/issues)
|
||||||
|
|
||||||
|
<!-- Links -->
|
||||||
|
|
||||||
|
---
|
||||||
|
<div>
|
||||||
|
<a href="https://git.zakscode.com/ztimson/oacpl/releases" target="_blank">Release Notes</a>
|
||||||
|
• <a href="https://git.zakscode.com/ztimson/oacpl/issues/new?template=.github%2fissue_template%2fbug.md" target="_blank">Report a Bug</a>
|
||||||
|
• <a href="https://git.zakscode.com/ztimson/oacpl/issues/new?template=.github%2fissue_template%2fenhancement.md" target="_blank">Request a Feature</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
---
|
||||||
|
</div>
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
- [OACPL](#top)
|
||||||
|
- [About](#about)
|
||||||
|
- [Built With](#built-with)
|
||||||
|
- [Setup](#setup)
|
||||||
|
- [Production](#production)
|
||||||
|
- [Development](#development)
|
||||||
|
- [License](#license)
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
A Django website for the Ontario Ascociation of Child Protection Lawyers which not only acts as a landing page for the non-profit but also provides the following services:
|
A Django website for the Ontario Ascociation of Child Protection Lawyers which not only acts as a landing page for the non-profit but also provides the following services:
|
||||||
- Member enrollment
|
|
||||||
- FAQ Forumn so the public can ask registered lawyers questions
|
- Member enrollment & profile pages
|
||||||
- Events with optional registration
|
- Public FAQ forum to ask registered lawyers questions
|
||||||
|
- Event calendar & registration
|
||||||
- Newsletters & press releases
|
- Newsletters & press releases
|
||||||
- Case law directory allowing lawyers to quickly search and find president for cases
|
- Case law directory allowing lawyers to quickly search and find president for cases
|
||||||
- An expert lookup directory so that lawyers can research expert witnesses before putting them on the stand
|
- An expert lookup directory so that lawyers can research expert witnesses before putting them on the stand
|
||||||
|
|
||||||
|
### Built With
|
||||||
|
[![Django](https://img.shields.io/badge/django-0C4B33?style=for-the-badge&logo=django)](https://www.djangoproject.com/)
|
||||||
|
[![Docker](https://img.shields.io/badge/Docker-384d54?style=for-the-badge&logo=docker)](https://docker.com/)
|
||||||
|
[![Python](https://img.shields.io/badge/Python-FFD43B?style=for-the-badge&logo=python)](https://www.python.org/)
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<h3 id="production" style="display: inline">
|
||||||
|
Production
|
||||||
|
</h3>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
#### Prerequisites
|
||||||
|
- [Docker](https://docs.docker.com/install/)
|
||||||
|
|
||||||
|
#### Instructions
|
||||||
|
1. Run the docker image: `docker run -p 80:8000 git.zakscode.com/ztimson/oacpl:latest`
|
||||||
|
2. Open [http://localhost](http://localhost)
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<h3 id="development" style="display: inline">
|
||||||
|
Development
|
||||||
|
</h3>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
#### Prerequisites
|
||||||
|
- [Python](https://www.python.org/downloads/)
|
||||||
|
|
||||||
|
#### Instructions
|
||||||
|
1. Install the dependencies: `pip install -r requirements.txt`
|
||||||
|
2. Run database migrations: `python3 manage.py makemigrations && python3 manage.py migrate`
|
||||||
|
3. Collect static files: `python3 manage.py collectstatic`
|
||||||
|
4. Start server: `python3 manage.py runserver 0.0.0.0:8000`
|
||||||
|
5. Open http://localhost:8000
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## License
|
||||||
|
Copyright © 2023 Zakary Timson | All Rights Reserved
|
||||||
|
|
||||||
|
See the [license](./LICENSE) for more information.
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
version: '3'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres
|
image: postgres
|
||||||
|
|
||||||
web:
|
web:
|
||||||
|
image: git.zakscode.com/ztimson/oacpl:latest
|
||||||
build: .
|
build: .
|
||||||
command: python3 manage.py runserver 0.0.0.0:8000
|
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user