ldc-showroom/README.md

171 lines
2.2 KiB
Markdown
Raw Permalink Normal View History

2025-09-25 15:10:22 +02:00
# 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
2025-09-25 16:40:18 +02:00
### Docker way
```bash
make install
make build
```
### Host way
2025-09-25 15:10:22 +02:00
```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
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
2023-10-13 13:57:45 +02:00
2025-09-25 15:10:22 +02:00
### Setup
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
Make sure to install the dependencies:
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
```bash
# npm
npm install
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# pnpm
pnpm install
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# yarn
yarn install
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# bun
bun install
```
2023-10-13 13:57:45 +02:00
2025-09-25 15:10:22 +02:00
### Development Server
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
Start the development server on `http://localhost:3000`:
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
```bash
# npm
npm run dev
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# pnpm
pnpm run dev
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# yarn
yarn dev
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# bun
bun run dev
```
2023-10-13 13:57:45 +02:00
2025-09-25 15:10:22 +02:00
### Production
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
Build the application for production:
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
```bash
# npm
npm run build
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# pnpm
pnpm run build
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# yarn
yarn build
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# bun
bun run build
```
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
Locally preview production build:
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
```bash
# npm
npm run preview
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# pnpm
pnpm run preview
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# yarn
yarn preview
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
# bun
bun run preview
```
2023-10-13 13:57:45 +02:00
2023-10-13 16:18:44 +02:00
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.