Skip to content

Angular 4 app using Socket.IO for realtime action event

Notifications You must be signed in to change notification settings

TinTran96/Angular-Socket.IO

Repository files navigation

AngularSocket.IO

This project was generated with Angular CLI version 1.2.3.

Using

Getting Started

  1. Clone the project to your computer.
  2. Run npm install.

For the Angular design webpage with change refresh.

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

For the develope on Nodejs Server

  1. Run ng build to build the project. The NodeJS server will run the folder dist after build. Care to check every changing before build.
  2. Run node server.js. Navigate to http://localhost:3000/. Every change on file server.js.

Config MongoDB

Go to db.js file and config for MongoDB

   var url = "<Mongo URL DB HERE>";
   ...
   var database = db.db('<db name>');

I'm using mLab free MongoDB, for example

  • MongoDB URL : mongodb://:@ds036617.mlab.com:36617/testingmongo
  • DB name : testingmongo

About

Angular 4 app using Socket.IO for realtime action event

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published