Giter Site home page Giter Site logo

messaging-client's Introduction

Messaging Client

To run application on localhost:3000

  1. Clone this repository git clone https://github.com/Heli-Copter/messaging-client.git

  2. Install npm dependencies with npm install

  3. Run application using npm script npm run start

  4. To get production ready built code, run npm run build

You can run this application on a virtual DNS using nginx server (for eg. messaging.gsharma.com) by following nginx setup steps.

To setup nginx

This is needed to run application with name in url bar.

  1. Install nginx with homebrew brew install nginx

  2. Add 127.0.0.1 messaging.gsharma.com in '/etc/hosts'

127.0.0.1   messaging.gsharma.com
  1. Add directory sites-available and sites-enabled.

  2. Add file 'messaging.gsharma.com' inside the directory 'sites-available' amd add below code:

server {
  listen                443 ssl;
  server_name           messaging.gsharma.com;
  ssl_certificate       ...cert.pem; # Path to certificate
  ssl_certificate_key   ...key.pem; # Path to certificate key
    location / {
        proxy_pass https://localhost:3000;
    }
}
  1. include created server blocks to '/usr/local/etc/nginx.conf' by adding following piece of code inside http section:
http {
    include       mime.types;
    include       sites-enabled/*.com;
    ...
    ...
}
  1. Create a soft link from sites-available to sites-enabled
ln -s /usr/local/etc/nginx/sites-available/messaging.gsharma.com /usr/local/etc/nginx/sites-enabled
  1. Reload nginx with the command sudo nginx -s reload

To generate certificates

openssl genrsa -out key.pem
openssl req -new -key key.pem -out csr.pem
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
rm csr.pem

Hi Gaurav enjoy

messaging-client's People

Contributors

zuppzipp avatar

Stargazers

 avatar

Watchers

James Cloos avatar Gaurav Sharma avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.