You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/README.md
+29-8Lines changed: 29 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,32 @@
1
-
# React + TypeScript + Vite
1
+
# Frontend
2
2
3
-
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+
## Running with Docker (Standalone)
4
4
5
-
Currently, two official plugins are available:
5
+
1. Run this command to build:
6
+
```sh
7
+
docker build \
8
+
-t frontend-local \
9
+
--build-arg port=3000 \
10
+
-f frontend.Dockerfile .
11
+
```
12
+
2. Run this command, from the root folder:
6
13
7
-
-[@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
-
-[@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
14
+
```sh
15
+
make db-up
16
+
```
17
+
18
+
3. Run the necessary migrate and seed commands, if you haven't yet.
19
+
20
+
4. Run this command to expose the container:
21
+
```sh
22
+
docker run -p 3000:3000 --env-file ./.env.docker frontend-local
23
+
```
24
+
25
+
## Running with Docker-Compose (Main config)
26
+
27
+
Edit the variables in the `.env.compose` file and run `make up` from the root folder.
28
+
29
+
Any startup instructions will be run from `entrypoint.sh` instead.
0 commit comments