Compare commits
6 commits
Author | SHA1 | Date | |
---|---|---|---|
|
4f66b5d735 | ||
|
bcca964f31 | ||
|
9a46018399 | ||
|
ad28aa3b28 | ||
|
0d9538bb8c | ||
|
bbdbad6e7d |
6 changed files with 6 additions and 17 deletions
14
README.md
14
README.md
|
@ -25,24 +25,12 @@ git clone https://github.com/NabilOuldHamou/M1_ProjetWeb
|
||||||
```
|
```
|
||||||
|
|
||||||
<h3>Production</h3>
|
<h3>Production</h3>
|
||||||
Installez **Docker** sur votre machine puis utilisez la commande suivante pour lancer le projet
|
Installez <bold>Docker</bold> sur votre machine puis utilisez la commande suivante pour lancer le projet
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up
|
docker compose up
|
||||||
```
|
```
|
||||||
|
|
||||||
Ensuite, modifiez les données suivantes dans le fichier `.env`
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
JWT_SECRET="..."
|
|
||||||
MONGO_ROOT_USERNAME="..."
|
|
||||||
MONGO_ROOT_PASSWORD="..."
|
|
||||||
MONGO_DEFAULT_DB="..."
|
|
||||||
```
|
|
||||||
|
|
||||||
<h3>Développement</h3>
|
|
||||||
TODO
|
|
||||||
|
|
||||||
<h2 id="auth">🤝 Auteurs</h2>
|
<h2 id="auth">🤝 Auteurs</h2>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
|
|
|
@ -9,6 +9,7 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=mongodb://temp-root-username:temp-password@mongodb/chat_projetweb?authSource=admin
|
- DATABASE_URL=mongodb://temp-root-username:temp-password@mongodb/chat_projetweb?authSource=admin
|
||||||
- JWT_SECRET=ba63466f102443f4bb6f3670891358bc4488d0c717f6ebcd3ee3c5144e55fe2d
|
- JWT_SECRET=ba63466f102443f4bb6f3670891358bc4488d0c717f6ebcd3ee3c5144e55fe2d
|
||||||
|
- BODY_SIZE_LIMIT=Infinity
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
networks:
|
networks:
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
>
|
>
|
||||||
<!-- Image de profil -->
|
<!-- Image de profil -->
|
||||||
<img
|
<img
|
||||||
src={`http://localhost:5173/${user.profilePicture}`}
|
src={`https://arbres.oxyjen.io/${user.profilePicture}`}
|
||||||
alt="Profile Picture"
|
alt="Profile Picture"
|
||||||
class="h-10 w-10 rounded-full border border-gray-300 cursor-pointer"
|
class="h-10 w-10 rounded-full border border-gray-300 cursor-pointer"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<div class="overlay" role="dialog" aria-labelledby="profile-card-title" on:click={onClose}>
|
<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-card flex flex-col gap-5" on:click|stopPropagation>
|
||||||
<div class="profile-header">
|
<div class="profile-header">
|
||||||
<img src="http://localhost:5173/{user.profilePicture}" alt="Profile" class="profile-image" />
|
<img src="https://arbres.oxyjen.io/{user.profilePicture}" alt="Profile" class="profile-image" />
|
||||||
<h2 id="profile-card-title" class="profile-name">{user.username}</h2>
|
<h2 id="profile-card-title" class="profile-name">{user.username}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="profile-info">
|
<div class="profile-info">
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
>
|
>
|
||||||
<div class="flex items-center gap-4">
|
<div class="flex items-center gap-4">
|
||||||
<img
|
<img
|
||||||
src={`http://localhost:5173/${user.profilePicture}`}
|
src={`https://arbres.oxyjen.io/${user.profilePicture}`}
|
||||||
alt="Profile"
|
alt="Profile"
|
||||||
class="h-12 w-12 rounded-full border border-gray-300"
|
class="h-12 w-12 rounded-full border border-gray-300"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { io } from "socket.io-client";
|
||||||
|
|
||||||
// Initialisation de la socket
|
// Initialisation de la socket
|
||||||
export const initSocket = () => {
|
export const initSocket = () => {
|
||||||
const socketInstance = io("http://localhost:5173");
|
const socketInstance = io("http://localhost:3000");
|
||||||
let socketId = null;
|
let socketId = null;
|
||||||
|
|
||||||
return socketInstance
|
return socketInstance
|
||||||
|
|
Loading…
Add table
Reference in a new issue