funkwhale/docs/developer/setup/vite.md

43 wiersze
921 B
Markdown

# Develop using Vite
2022-10-26 20:07:02 +00:00
If you want to make changes to the frontend, you can use Vite to run a development server. This allows you to run a Funkwhale web app and see changes in real time
1. Clone the repository:
::::{tab-set}
2022-10-26 20:07:02 +00:00
:::{tab-item} SSH
2022-10-26 20:07:02 +00:00
```sh
git clone git@dev.funkwhale.audio/funkwhale/funkwhale.git
cd funkwhale/front
```
2022-10-26 20:07:02 +00:00
:::
2022-10-26 20:07:02 +00:00
:::{tab-item} HTTPS
2022-10-26 20:07:02 +00:00
```sh
git clone https://dev.funkwhale.audio/funkwhale/funkwhale.git
cd funkwhale/front
```
2022-10-26 20:07:02 +00:00
:::
2022-10-26 20:07:02 +00:00
::::
2022-10-26 20:07:02 +00:00
2. Install [Node.js](https://nodejs.org/en/download/package-manager/) and [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/)
3. Install all dependencies:
```sh
yarn install
```
2022-10-26 20:07:02 +00:00
2023-04-05 10:13:14 +00:00
4. Launch the development server:
2022-10-26 20:07:02 +00:00
```sh
yarn dev
```
2022-10-26 20:07:02 +00:00
You can access the Funkwhale web app at `http://localhost:8000/front`. Connect this app to your pod by selecting {guilabel}`Switch instance` in the sidebar.