Compare commits

..

1 commit
master ... dev

Author SHA1 Message Date
Bilal Dieumegard
493ea2f1d9 Fix .env docker-compose.yml 2024-12-18 12:11:23 +01:00
8 changed files with 9 additions and 25 deletions

View file

@ -25,12 +25,15 @@ git clone https://github.com/NabilOuldHamou/M1_ProjetWeb
```
<h3>Production</h3>
Installez <bold>Docker</bold> sur votre machine puis utilisez la commande suivante pour lancer le projet
Installez **Docker** sur votre machine puis utilisez la commande suivante pour lancer le projet
```bash
docker compose up
```
<h3>Développement</h3>
TODO
<h2 id="auth">🤝 Auteurs</h2>
<table>

View file

@ -1,23 +1,5 @@
services:
app:
build: .
hostname: app
depends_on:
- mongodb
- redis
environment:
- DATABASE_URL=mongodb://temp-root-username:temp-password@mongodb/chat_projetweb?authSource=admin
- JWT_SECRET=ba63466f102443f4bb6f3670891358bc4488d0c717f6ebcd3ee3c5144e55fe2d
- BODY_SIZE_LIMIT=Infinity
ports:
- "3000:3000"
networks:
- app_network
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
mongodb:
build: ./mongodb_rs
hostname: mongodb

View file

@ -6,7 +6,6 @@
generator client {
provider = "prisma-client-js"
binaryTargets = ["debian-openssl-1.1.x", "linux-musl-openssl-3.0.x", "linux-musl-arm64-openssl-3.0.x"]
}
datasource db {

View file

@ -76,7 +76,7 @@
>
<!-- Image de profil -->
<img
src={`https://arbres.oxyjen.io/${user.profilePicture}`}
src={`http://localhost:5173/${user.profilePicture}`}
alt="Profile Picture"
class="h-10 w-10 rounded-full border border-gray-300 cursor-pointer"
/>

View file

@ -26,7 +26,7 @@
<div class="overlay" role="dialog" aria-labelledby="profile-card-title" on:click={onClose}>
<div class="profile-card flex flex-col gap-5" on:click|stopPropagation>
<div class="profile-header">
<img src="https://arbres.oxyjen.io/{user.profilePicture}" alt="Profile" class="profile-image" />
<img src="http://localhost:5173/{user.profilePicture}" alt="Profile" class="profile-image" />
<h2 id="profile-card-title" class="profile-name">{user.username}</h2>
</div>
<div class="profile-info">

View file

@ -10,7 +10,7 @@
>
<div class="flex items-center gap-4">
<img
src={`https://arbres.oxyjen.io/${user.profilePicture}`}
src={`http://localhost:5173/${user.profilePicture}`}
alt="Profile"
class="h-12 w-12 rounded-full border border-gray-300"
/>

View file

@ -1,7 +1,7 @@
import { createClient } from 'redis';
const client = await createClient({
url: process.env.REDIS_URL || 'redis://redis-server:6379'
url: process.env.REDIS_URL || 'redis://localhost:6379'
});

View file

@ -2,7 +2,7 @@ import { io } from "socket.io-client";
// Initialisation de la socket
export const initSocket = () => {
const socketInstance = io("http://localhost:3000");
const socketInstance = io("http://localhost:5173");
let socketId = null;
return socketInstance