2023-07-17 14:54:40 +08:00
|
|
|
# Codespaces
|
|
|
|
|
2023-07-18 05:17:20 +02:00
|
|
|
You can modifiy Uptime Kuma in your browser without setting up a local development.
|
2023-07-17 14:54:40 +08:00
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
1. Click `Code` -> `Create codespace on master`
|
|
|
|
2. Wait a few minutes until you see there are two exposed ports
|
2023-10-02 21:48:21 +00:00
|
|
|
3. Go to the `3000` url, see if it is working
|
2023-07-17 14:54:40 +08:00
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
## Frontend
|
|
|
|
|
2023-07-18 05:17:20 +02:00
|
|
|
Since the frontend is using [Vite.js](https://vitejs.dev/), all changes in this area will be hot-reloaded.
|
|
|
|
You don't need to restart the frontend, unless you try to add a new frontend dependency.
|
2023-07-17 14:54:40 +08:00
|
|
|
|
2023-07-18 05:17:20 +02:00
|
|
|
## Backend
|
2023-07-17 14:54:40 +08:00
|
|
|
|
2023-07-18 05:17:20 +02:00
|
|
|
The backend does not automatically hot-reload.
|
|
|
|
You will need to restart the backend after changing something using these steps:
|
2023-07-17 14:54:40 +08:00
|
|
|
|
|
|
|
1. Click `Terminal`
|
2023-07-18 05:17:20 +02:00
|
|
|
2. Click `Codespaces: server-dev` in the right panel
|
|
|
|
3. Press `Ctrl + C` to stop the server
|
|
|
|
4. Press `Up` to run `npm run start-server-dev`
|
2023-07-17 14:54:40 +08:00
|
|
|
|
|
|
|

|