refactor: migrate from Next.js to SolidJS and GraphQL
- Converted web application from Next.js to SolidJS with Vite - Replaced React components with SolidJS components - Implemented GraphQL client using URQL - Added authentication, room, and chat components - Updated project structure and configuration files - Removed unnecessary Next.js and docs-related files - Added Docker support for web and API applications
This commit is contained in:
parent
8f3aa2fc26
commit
16731409df
81 changed files with 13585 additions and 1163 deletions
43
docker-compose.yml
Normal file
43
docker-compose.yml
Normal file
|
@ -0,0 +1,43 @@
|
|||
services:
|
||||
api:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./apps/api/Dockerfile
|
||||
args:
|
||||
NODE_ENV: production
|
||||
DATABASE_URL: mysql://root:yRi85wAY64vb8o9Y@db-mariadb-1:3306/unreal_chat
|
||||
container_name: unreal-chat-api
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- DATABASE_URL=mysql://root:yRi85wAY64vb8o9Y@db-mariadb-1:3306/unreal_chat
|
||||
- JWT_SECRET=your-secret-key
|
||||
- PORT=4000
|
||||
ports:
|
||||
- "4000:4000"
|
||||
networks:
|
||||
- default-network
|
||||
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./apps/web/Dockerfile
|
||||
args:
|
||||
VITE_API_URL: https://chat-api.jusemon.com/graphql
|
||||
VITE_WS_URL: wss://chat-api.jusemon.com/graphql
|
||||
container_name: unreal-chat-web
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- VITE_API_URL=https://chat-api.jusemon.com/graphql
|
||||
- VITE_WS_URL=wss://chat-api.jusemon.com/graphql
|
||||
ports:
|
||||
- "5173:5173"
|
||||
networks:
|
||||
- default-network
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
networks:
|
||||
default-network:
|
||||
external: true
|
Loading…
Add table
Add a link
Reference in a new issue