1 Commits

Author SHA1 Message Date
renovate[bot]
65c547b984 Update dependency @vitejs/plugin-vue to v6 2026-02-24 01:56:40 +00:00
2 changed files with 20 additions and 20 deletions

View File

@@ -26,18 +26,18 @@ frontend:
## dev: Build and run in Docker ## dev: Build and run in Docker
dev: dev:
docker build -t rfd-fyi:dev . docker build -t rfd-fyi:dev .
docker run -d --name rfd-fyi -p 8080:8080 rfd-fyi:dev docker run -d --name rfd-fyi-dev -p 8080:8080 rfd-fyi:dev
.PHONY: dev .PHONY: dev
## prod: Run the latest image in Docker ## prod: Run the latest image in Docker
prod: prod:
@git pull @git pull
@docker pull ghcr.io/davegallant/rfd-fyi @docker pull ghcr.io/davegallant/rfd-fyi
@docker run -d --name rfd-fyi -p 8080:8080 ghcr.io/davegallant/rfd-fyi @docker run -d --name rfd-fyi-prod -p 8080:8080 ghcr.io/davegallant/rfd-fyi
.PHONY: prod .PHONY: prod
## teardown: Teardown Docker ## teardown: Teardown Docker
teardown: teardown:
docker stop rfd-fyi || true docker stop rfd-fyi-dev rfd-fyi-prod || true
docker rm rfd-fyi || true docker rm rfd-fyi-dev rfd-fyi-prod || true
.PHONY: teardown .PHONY: teardown

View File

@@ -4,30 +4,30 @@ This repository provides a simple, less-distracting overlay for hot deals posted
The frontend is made with Vue 3 and the backend is written in Go. The backend exists for caching purposes; to prevent excessive requests to RedFlagDeals itself. The frontend is made with Vue 3 and the backend is written in Go. The backend exists for caching purposes; to prevent excessive requests to RedFlagDeals itself.
## Docker
To run the latest:
```sh
docker run -d --name rfd-fyi -p 8080:8080 ghcr.io/davegallant/rfd-fyi
```
To build container from source:
```sh
make dev
```
## Local Development ## Local Development
To get up and running locally: in one shell, run: To get up and running locally: in one pane/tab, run:
```sh ```sh
make backend make backend
``` ```
In another shell, run: In another pane/tab, run:
```sh ```sh
make frontend make frontend
``` ```
## Docker Compose
To build containers from source:
```sh
make dev
```
To run the latest published images:
```sh
make prod
```