chore: update environment configuration and Docker setup

- Added .env.example file for environment variable documentation
- Refactored docker-compose.yml to use environment variables for API URLs
- Updated TypeScript configuration to use NodeNext module resolution
This commit is contained in:
Juan Sebastián Montoya 2025-04-10 14:36:22 -05:00
parent f5638d0e84
commit cffcddb259
5 changed files with 25 additions and 22 deletions

View file

@ -42,19 +42,7 @@ npm install
3. Set up environment variables:
Create a `.env` file in the `apps/api` directory:
```
DATABASE_URL="mysql://root:password@localhost:3306/unreal_chat"
JWT_SECRET="your-secret-key"
```
Create a `.env` file in the `apps/web` directory:
```
VITE_API_URL=http://localhost:4000/graphql
VITE_WS_URL=ws://localhost:4000/graphql
```
Copy the `.env.example` file to `.env`, then update the values as needed.
4. Initialize the database: