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

https://github.com/than-dev/attendance-chat

An Attendance Chat using socket.io + messages API, in it project we have attendants and customers, that interact by a web interface.
https://github.com/than-dev/attendance-chat

api fullstack nodejs socket-io typescript web-socket

Last synced: 6 months ago
JSON representation

An Attendance Chat using socket.io + messages API, in it project we have attendants and customers, that interact by a web interface.

Awesome Lists containing this project

README

          



Project logo

Attendance Chat

## Description

It is a fullstack application developed in Rocketseat - NLW #5 with Typescript, nodeJs, Sqlite and Typeorm!

## Usage and Installation

Just clone this repo and run:

```
npm install
```

```
npm run typeorm migration:run
```

```
npm run dev
```

## Features and Requirements

### API + Socket

+ All connections are saved at database;
+ You can get a connection by User ID;
+ You can find all connections without an admin;
+ You can find a connection by socket ID;
+ You can update admin ID;
+ All messages are saved at database;
+ You can list messages by User;
+ You can create settings;
+ You can update settings;
+ You can find settings by username;
+ If an email is not registered, it is auto created;
+ You can find a user by email;

### Frontend

As customer:
+ You can start a conversation with an attendance;
+ You can see it messages;
+ You can go out conversation;

As attendant:
+ You can see all conversations without an attendant;
+ You can start a attendance;
+ You can close it;


## Covered Concepts

+ Orm - Typeorm;
+ Migrations;
+ API - Creation and Consume;
+ Web Socket Protocol (real time communication);
+ 1:1 associations;
+ 1:n associations;
+ SQLite