A simple chatting application developed using Angular and Node.js. Angular was used for the front-end and Node.js for the backend (server). Socket.io was used to manage the flow of messages between the server and the client through it's event-driven functionality.
- Angular CLI
- Angular 2/4
- Node
- MySQL Database (with the correct tables)
- Unseen Messages
- Typing... Functionality
- Block Members
- Improve Chat Interface
- Cache Messages
- Multiple Chat Windows
Navigate to the server folder and run node index
to start the server. (Note: The server won't run without the required MySQL tables already created. Functions haven't been provided for that.)
Then run ng serve
from the parent folder for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Note: If the server isn't started, user won't be able to login.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.