Table of Contents
The app is all about practicing socket fundamentals and custom events.
For this, an application is created in which tickets can be created and attended to on the screen. We access the screens through a form and a name.
On this screen (or desktop) we can attend to these tickets one by one. In addition, we can see the pending tickets.
![image](https://private-user-images.githubusercontent.com/83432755/239770107-933ff9db-0f10-4ddd-aa49-541f6e280c03.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2ODI5MzIsIm5iZiI6MTcyNTY4MjYzMiwicGF0aCI6Ii84MzQzMjc1NS8yMzk3NzAxMDctOTMzZmY5ZGItMGYxMC00ZGRkLWFhNDktNTQxZjZlMjgwYzAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDA0MTcxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2ZjU3MTIzZjc1ZjhmZDFmZDZkMTJmNGE4YmRkMjRiYmM2OGVhNzk3OWFiMDVmZmU1ZWM0YmI4NmY2NTI5NGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RUye4JuHRe9yg8PER6yGeiYWNwNiXGUkM5q1cqG3xDo)
Before init, we need:
To get a local copy, clone it using:
git clone https://github.com/github_username/repo_name.git
Or get it downloading
rm -rf .git && git init
git add .
git commit -m "Initial commit"
pnpm install
#or
yarn install
#or
npm install
In this project, you can run the following scripts:
Scripts | Description |
---|---|
pnpm dev | Runs the app in the development mode. |
pnpm start | Runs the app in production mode. |
- cors for providing a Connect/Express middleware.
- dotenv loads environment variables from a .env file into process.env.
- socket.io bidirectional and low-latency communication for every platform.
socket-queue-app/
├── db # Database
├── node_modules # Third party libraries
├── public
| ├── audio
| ├── css # stylesheet
| ├── js
| ├── index.html # index file
└── src # Root directory
| ├── models # Classes
| ├── sockets # Socket controllers
| └── server # Server configuration and initialization
├── .gitignore # Files ignored at publish into github
├── app.js # Server instance
├── LICENSE # License information
├── nodemon.json # nodemon configuration
├── package.json
├── pnpm-lock.yaml
└── README.md
This project is licensed under the terms of the MIT license.
Socket Queue App is built and maintained by Castro Maciel.
Badges used from Ileriayo • markdown-badges.