ldc-showroom/README.md
2025-09-25 16:40:18 +02:00

170 lines
2.2 KiB
Markdown

# Showroom - App Expo
Update : 25-09-2025
## Prerequisites
### Binaries
- Node & NPM
- Wine & Wine32
#### Wine
```bash
sudo dpkg --add-architecture i386 # Allow Win32 arch for packaging
sudo apt-get update
sudo apt-get install wine wine32
```
In Ubuntu, if you get an error for : libgphoto2-6t64:i386 related to libgd3:i386
```bash
sudo nano /etc/apt/preferences.d/99-libgd3-ubuntu.pref
```
Add :
```text
Package: libgd3
Pin: release o=Ubuntu
Pin-Priority: 1001
Package: libgd3:i386
Pin: release o=Ubuntu
Pin-Priority: 1001
Package: libgphoto2-6
Pin: release o=Ubuntu
Pin-Priority: 1001
Package: libgphoto2-6:i386
Pin: release o=Ubuntu
Pin-Priority: 1001
```
Then :
```bash
sudo apt update
sudo apt dist-upgrade
rm -rf ~/.wine
```
### Datas
Put .zip export from backend and put it in :
```bash
./static/data
```
ex:
```bash
ls static/data
```
return :
```bash
showroom-bo-export_25-09-2025_10-15-05.zip
```
/!\ You can have multiple .zip files, program always get the last one for building.
## Production
### Docker way
```bash
make install
make build
```
### Host way
```bash
npm run build
```
Last command give you an .exe in folder below :
```bash
release/
```
For example :
```bash
ls release/2.3.3
```
Should return :
```bash
'App UWIL Expo_2.3.3.exe' builder-debug.yml builder-effective-config.yaml win-unpacked
```
'App UWIL Expo_2.3.3.exe' is the production deliverable.
## Development
### Nuxt 3 Minimal Starter
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
### Setup
Make sure to install the dependencies:
```bash
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
```
### Development Server
Start the development server on `http://localhost:3000`:
```bash
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
```
### Production
Build the application for production:
```bash
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
```
Locally preview production build:
```bash
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.