Skip to content

Commit

Permalink
chore: Rename the project
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlushkin committed Aug 23, 2024
1 parent 611e459 commit 14fb27f
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 18 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
-
name: Checkout
uses: actions/checkout@v4

- name: Python Semantic Release
uses: python-semantic-release/[email protected]
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Push Docker Image
run: docker push bedasoftware/fhirsnake:latest
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ RUN pip install poetry

RUN poetry install --no-root --no-dev

COPY coralsnake /app
COPY fhirsnake /app

EXPOSE 8000

CMD ["poetry", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
COPY examples /app/resources
CMD ["poetry", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
2 changes: 1 addition & 1 deletion Dockerfile.resources
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM coralsnake:latest
FROM fhirsnake:latest

COPY resources /app/resources
# The destination should be exactly the same!
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<img src="coral snake.webp" alt="Example Image" height="200">

# coralsnake: turn static files to a FHIR server
# fhirsnake: turn static files to a FHIR server

![image](https://img.shields.io/badge/fastapi-109989?style=for-the-badge&logo=FASTAPI&logoColor=white)


## What is it?
**coralsnake** is a minimalistic FHIR server that serve yaml and json files as FHIR resources
**fhirsnake** is a minimalistic FHIR server that serve yaml and json files as FHIR resources

## How it works?
The server reads all `yaml` and `json` files from `resources` directory.
Expand All @@ -25,21 +25,23 @@ resources/

## Supported operations
- **read**, **create** and **update** operations are supported
- ❗all created and updated resources persist in runtime only
- ❗all changes are vanished after service restart
- **search** - limied support without any search params
- `GET /$index` operation returns a map of all resources in format `<resource_type>:<id>`


## How to use?
1. Organize resources in a directory
2. Adjust source destination in `Dockerfile.resources` if required
3. Build an image using the base **coralsnake** image
3. Build an image using the base **fhirsnake** image
```bash
docker build -t coralsnake-resources:latest -f Dockerfile.resources .
docker build -t fhirsnake-resources:latest -f Dockerfile.resources .
```
4. Run a container
```bash
docker run -p 8000:8000 coralsnake-resources
docker run -p 8000:8000 fhirsnake-resources
```

## Contribution and feedback
Plaease, use [Issues](https://github.com/beda-software/coralsnake/issues)
Plaease, use [Issues](https://github.com/beda-software/fhirsnake/issues)
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion coralsnake/main.py → fhirsnake/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

logging.basicConfig(level=logging.INFO)

REPOSITORY_URL = "https://github.com/beda-software/coralsnake/"
REPOSITORY_URL = "https://github.com/beda-software/fhirsnake/"

app = FastAPI()

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tool.poetry]
name = "coralsnake"
name = "fhirsnake"
version = "0.1.0"
description = "A minimalistic FHIR server for resources as files"
authors = ["Ilya Beda <[email protected]>", "Aleksandr Pavlushkin <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/beda-software/coralsnake/"
homepage = "https://github.com/beda-software/fhirsnake/"

[tool.poetry.dependencies]
python = "^3.11"
Expand Down

0 comments on commit 14fb27f

Please sign in to comment.