Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/math-pixel/photo-party

Photo-Party is an interactive game where people can share images, videos and texts in real time on a large screen using a video projector, for example.
https://github.com/math-pixel/photo-party

Last synced: 2 days ago
JSON representation

Photo-Party is an interactive game where people can share images, videos and texts in real time on a large screen using a video projector, for example.

Awesome Lists containing this project

README

        



# Photo Party

Photo Party is an application for shared photos of your party on a big screen in real time.

## Tech


html5
css3
javascript
nodejs
bdd
javascript

## Installation

Install Photo Party with npm

1)
```bash
git clone the repo
```

2)
```bash
cd ./Photo-Party
```

3)
```bash
duplicate and rename the ".env-example" > ".env"
```

4)
```bash
npm install
```

5)
```bash
unzip, import and deploy database of "template database.zip" in localhost
```

6)
```bash
npm run server
```

7) In Webbrowser go to
```bash
player => localhost:5000/
admin => localhost:5000/admin
projector => localhost:5000/projecteur
```

## Shema

### Architecture

![img](https://i.imgur.com/ZqRYUfC.png)

### Sequence Diagram

![Logo](https://i.imgur.com/rutyvRh.png)

### Mermaid Diagram theme :
```json
{
"theme": "base",
"themeVariables": {
"primaryColor": "#3C41FF",
"actorTextColor": "#ffff",
"primaryTextColor": "#000470",
"secondaryTextColor": "#FF0000",
"primaryBorderColor": "#000",
"lineColor": "#000",
"secondaryColor": "#ffffff",
"tertiaryColor": "#000"
}
}

```

## EndPoint

### Client :

#### Connection :

```bash
GET /
```

#### Send data :

```bash
POST /importingFile
```

| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| `image` | `blob` | Image UPLOAD |
| `comment` | `text` | text UPLOAD |
| `email` | `text` | email of user |
| `nom` | `text` | username of user |

### Projector :

_Establish a WebSocket connection_

#### Connection :
```bash
GET /projecteur
```

### Admin :

_Establish a WebSocket connection_

#### Connection :
```bash
GET /admin
```

#### Admin Pannel :
```bash
POST /administration
```

| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| `nom` | `text` | Admin Username |
| `mdp` | `text` | Admin Password |

#### Admin Pannel Parameter :
```bash
POST /adminParameter
```

| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| `image1isChange` | `bool` | Testing Variable |
| `image2isChange` | `bool` | Testing Variable |
| `comeToParameter` | `bool` | Testing Variable |
| `nom` | `text` | Admin Username |
| `mdp` | `text` | Admin Password |

## Color Reference

| Color | Hex |
| ----------------- | ------------------------------------------------------------------ |
| Primary Color | ![#3C41FF](https://via.placeholder.com/60/3C41FF?text=+) #3C41FF |
| Black | ![#000](https://via.placeholder.com/60/000?text=+) #000 |
| White | ![#fff](https://via.placeholder.com/60/fff?text=+) #fff |

## Logo

## Features

- Remove french words