Real time chat app with Angular, Node and MongoDb using socket-io
$ npm install
$ npm start
By default, app is set to connect to local mongo db. In order to connect to any cloud mongo make necessary changes.
var config = {};
<!-- cloud mongo start -->
<!-- config.mongodb=''; -->
<!-- config.mongodb_username=''; -->
<!-- config.mongodb_password=''; -->
<!-- cloud mongo end -->
<!-- local mongo start -->
config.mongodb="mongodb://localhost/nyschat";
<!-- local mongo end -->
module.exports = config;
Change serverIp to the IP of your server. Systems which are in same network can access the app through browser.
export const environment = {
production: false,
serverIp: '172.16.30.16'
};
- Require X-Code or Android SDK
- npm install -g cordova
- Go to nys-chat-mobile and do npm install
- cordova add ios or cordova add android
- Go back to nys-chat and do npm build --prod
- Copy all the contents in dist/nys-chat/ to www folder of nys-chat-mobile
- Change base href="/" index.html in www to base href="./"
- node server from server system.
- Go to nys-chat-mobile and do cordova run ios or cordova run android