AlexanderPrendota / hi-friends-client

Simple chat. Angular 4, Google auth and WebSockets πŸ‘¦πŸ‘©

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hiclient

Client for Hi-Friends-server.

hi-client

How to change configuration.

look at environment.ts

const HOST = 'localhost';
const PORT = 8080;
const FULL_HOST = HOST + ':' + PORT;

export const URL = {
  active:          'http://' + FULL_HOST + '/api/user/active/',
  save_message:    'http://' + FULL_HOST + '/api/message/save',
  chatId:          'http://' + FULL_HOST + '/api/message/chat/owner/',
  messages:        'http://' + FULL_HOST + '/api/message/messages/',
  login:           'http://' + FULL_HOST + '/login',
  logout:          'http://' + FULL_HOST + '/logout/',
  endPointSockets: 'http://' + FULL_HOST + '/chat'
};

export const AUDIO_URL = 'http://www.pacdv.com/sounds/mechanical_sound_effects/cling_1.wav';

Development server

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

Build

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.

About

Simple chat. Angular 4, Google auth and WebSockets πŸ‘¦πŸ‘©


Languages

Language:TypeScript 65.5%Language:CSS 19.1%Language:HTML 10.0%Language:JavaScript 5.4%