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:
parent
f5638d0e84
commit
cffcddb259
5 changed files with 25 additions and 22 deletions
14
README.md
14
README.md
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue