A few projects examples of things you can do with sockets. Made in Angular, Node and Express. I came up with this idea after taking a course of Udemy by Fernando Herrera to show everything learned.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
This app contains some examples you can do with sockets: A chat, poll, charts, interactive maps and more.
Live demo available HERE
To get a local copy up and running follow these simple steps.
You will need a copy of Node.js as an environment to run the project. Then you use a dependency manager like npm to download dependencies into your project.
-
npm
npm install npm@latest -g
-
Angular CLI
npm install -g @angular/cli
-
Typescript
npm install -g typescript
- Clone the repo
git clone https://github.com/tomimelo/sockets-projects.git
- Install NPM packages - You need to execute this command in both backend and frontend folders:
npm install
- Open a terminal and enter frontend. Then run the following command for a dev server
ng serve
- On another terminal enter backend folder and compile typescript project
tsc
- Enter on dist generated folder an run node server
node index.js
- Your app is ready. Open your browser and go to:
localhost:5000
You can open the same page on another browser to play around and see changes in real time.
Tomas Melone - [email protected]
Project Link: https://github.com/tomimelo/sockets-projects
README template by @othneildrew