Skip to content

Commit

Permalink
change filename (#2)
Browse files Browse the repository at this point in the history
* feat: production ready qr-code-generator - initial version
  • Loading branch information
Mbaoma authored Jul 19, 2023
1 parent d60bea2 commit 8b459eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY . .
# RUN pip install --no-cache-dir fastapi uvicorn[standard] gunicorn qrcode[pil]
RUN pip install --no-cache-dir -r requirements.txt

# Make port 80 available to the world outside this container
# Make port 8000 available to the world outside this container
EXPOSE 8000

# Run the command to start uvicorn
Expand Down
18 changes: 6 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@

A FastAPI endpoint that creates QR codes based off given URLs

## Setting up .env file

- Clone the [repo](https://github.com/development-captains/test-80-np.pluto.onglueops.rocks) into a codespace.

- Then run, in the root folder
```bash
$ source .env
```

- Clone the repository you want to work on and ```cd``` into that directory.

## Running the QR code generator

- Development environment
Expand All @@ -32,7 +21,12 @@ $ docker run -p 8000:8000 qr-bot-generator

## Access the website

- In your browser, navigate to ```https://127.0.0.1:8000.preview.app.github.dev/v1/qr?url=<your-url>```
- In your browser, navigate to ```https://127.0.0.1:8000.preview.app.github.dev/v1/qr?url=<your-url>``` - localhost, ```https://qr-code-generator.<development-captain-domain>/v1/qr?url=<your-url>``` - Kubernetes deployment

A QR code will be generated
<img width="931" alt="image" src="https://github.com/GlueOps/github-actions-build-push-containers/assets/49791498/d66f773c-e05c-43db-b978-0bebbb303bb2">

## Deploying on ArgoCD
- Reference [this](https://github.com/GlueOps/project-template-helm-chart-app) repo for parameters to include in your ArgoCD manifest.

- Video guide [1](https://drive.google.com/file/d/1gBThTF1ln-UTrxrMmle6K_0YEXunxBjz/view) & [2](https://drive.google.com/file/d/1gBThTF1ln-UTrxrMmle6K_0YEXunxBjz/view)

0 comments on commit 8b459eb

Please sign in to comment.