1 Commits

Author SHA1 Message Date
renovate[bot]
b215cc4464 Update dependency vite to v7 2026-02-24 01:56:49 +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:
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
## prod: Run the latest image in Docker
prod:
@git pull
@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
## teardown: Teardown Docker
teardown:
docker stop rfd-fyi || true
docker rm rfd-fyi || true
docker stop rfd-fyi-dev rfd-fyi-prod || true
docker rm rfd-fyi-dev rfd-fyi-prod || true
.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.
## 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
To get up and running locally: in one shell, run:
To get up and running locally: in one pane/tab, run:
```sh
make backend
```
In another shell, run:
In another pane/tab, run:
```sh
make frontend
```
## Docker Compose
To build containers from source:
```sh
make dev
```
To run the latest published images:
```sh
make prod
```