Initial commit — Electron + React frontend, Express/Docker backend, members & project management
This commit is contained in:
31
frontend/README.md
Normal file
31
frontend/README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
Build instructions (macOS)
|
||||
|
||||
1. Install deps:
|
||||
|
||||
```bash
|
||||
cd "$(pwd)/frontend"
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Build the app (Vite):
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
3. Copy the build into the Electron app root (overwrite `dist/`):
|
||||
|
||||
```bash
|
||||
# from project root
|
||||
cp -R frontend/dist/* ./dist/
|
||||
```
|
||||
|
||||
4. Start Electron:
|
||||
|
||||
```bash
|
||||
npm start
|
||||
```
|
||||
|
||||
Notes
|
||||
- Ensure `vite` and `@vitejs/plugin-react` are in `frontend/package.json` devDependencies.
|
||||
- If your frontend source is in a different folder, place `vite.config.js` next to that source or update the path above.
|
||||
Reference in New Issue
Block a user