Skip to content

Real time chat app with Angular, Node and MongoDb using socket-io

Notifications You must be signed in to change notification settings

ed-niyas/nys-chat

Repository files navigation

nys-chat

Real time chat app with Angular, Node and MongoDb using socket-io

Quick Start

Installation and usage

$ npm install
$ npm start

Configuration

appSettings

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:https://localhost/nyschat";
<!-- local mongo end  -->

module.exports = config;

environment

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'
};

Cordova

  • 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="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/" in 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

About

Real time chat app with Angular, Node and MongoDb using socket-io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published