-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIntegrate
More file actions
30 lines (26 loc) · 892 Bytes
/
Copy pathIntegrate
File metadata and controls
30 lines (26 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
> Adjust the Docker Compose commands/acronyms if you place `server` and `client` at different relative paths.
---
### 🚀 How to Integrate These Files:
1. **Create a new `server/` directory** in your repo and add:
- `index.js`
- `models/Message.js`
- `models/User.js`
- `auth.js`
- `.env.example`
- `Dockerfile`
- `package.json`
- (optional) `tests/` subfolder with `auth.test.js`
2. **Create a new `client/` directory** (or rename your existing front-end folder to `client/`) and add:
- `index.html`
- `app.js`
- `style.css`
- `Dockerfile`
- `package.json` (optional)
3. Add `docker-compose.yml` at the repository root.
4. **Populate environment variables** in `/server/.env` (copy `.env.example` → `.env`).
5. **Install dependencies**:
```bash
cd server
npm install
cd ../client
npm install # if using live-server for local dev