Skip to content

Commit

Permalink
Use Vite for dev and migrate to SWR for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Jan 26, 2024
1 parent 3feb3b2 commit 52cce2d
Show file tree
Hide file tree
Showing 11 changed files with 1,645 additions and 43,206 deletions.
22 changes: 2 additions & 20 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ services:
- |
python manage.py migrate
python manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
volumes:
- .:/code
depends_on:
Expand All @@ -33,14 +35,6 @@ services:
- redis
- rabbitmq

web:
build:
context: ./frontend
dockerfile: Dockerfile.dev
volumes:
- ./frontend/public:/frontend/public
- ./frontend/src:/frontend/src

db:
image: postgres:14-alpine
restart: on-failure
Expand Down Expand Up @@ -85,18 +79,6 @@ services:
image: zookeeper:3.7.0
restart: on-failure

caddy:
image: caddy:2.6.1
ports:
- "8888:8888"
environment:
SITE_ADDRESS: ":8888"
volumes:
- ./docker/Caddyfile:/etc/caddy/Caddyfile
depends_on:
- web
- app

rabbitmq:
image: rabbitmq:3.12.2-management-alpine
ports:
Expand Down
13 changes: 0 additions & 13 deletions frontend/Dockerfile.dev

This file was deleted.

17 changes: 17 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" />
<link rel="icon" type="image/x-icon" href="/favicons/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Web site created using create-react-app" />
<title>HouseWatch</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
Loading

0 comments on commit 52cce2d

Please sign in to comment.