Skip to content

Commit

Permalink
docs: adrs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSage committed Aug 22, 2023
1 parent dfcf371 commit 146a2f5
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
newadr:
@echo "Initiating an ADR..."
@read -p "Enter ADR number (e.g. 001): " number; \
read -p "Enter ADR title: " title; \
cp $(CURDIR)/adr/adr-template.md $(CURDIR)/adr/adr-$${number}-$${title}.md
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ Jan is a monorepo that pulls in the following submodules

```shell
├── docker-compose.yml
├── jan-mobile
├── jan-web
├── jan-backend
├── jan-inference
├── jan-docs
├── adrs # Architecture Decision Records
├── mobile-client
├── web-client
├── app-backend
├── inference-backend
├── docs # Developer Docs
├── adrs # Architecture Decision Records
```

18 changes: 18 additions & 0 deletions adr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Architectural Decision Records (ADR)

This is a repo of key architecture decisions for Jan. [Read more about ADRs](https://github.com/joelparkerhenderson/architecture-decision-record)


### Get started:

```sh
# In root:
make newadr
```

### Template:
- **Status**: `pending`, `approved`, or `rejected`
- **Context**: a clearly defined problem/goal
- **Decisions**: the proposed architecture choices & changes
- **Consequences**: pros and cons of the decision
- **References**: any relevant materials to read
24 changes: 24 additions & 0 deletions adr/adr-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ADR {ADR-NUM}: {TITLE}

## Changelog
- {date}: {changelog}

## Status

What is the status, such as proposed, accepted, rejected, deprecated, superseded, etc.?

{Proposed|Accepted|Rejected}

## Context

What is the issue that we're seeing that is motivating this decision or change?

## Decision

What is the change that we're proposing and/or doing?

## Consequences

What becomes easier or more difficult to do because of this change?

## Reference

0 comments on commit 146a2f5

Please sign in to comment.