Giter Site home page Giter Site logo

chatapp-webservice's Introduction

ChatApp-WebService

This repository contains the web-service for the Chat-App. Check the Chat-App repository for use.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

maven

MySQL

Installing

Create a MySQL database named messagesdb. Create two tables in this database, users_table and messages_table using the following commands: create table users_table(user varchar(100), password varchar(100)); and create table messages_table(message varchar(1000), sender varchar(100), recipient varchar(100));

In src\main\java\com\app\chatapp\rest, open the RestService.java file and enter your MySQL user and password where mentioned.

Navigate to the project root directory and run mvn clean install

Start the web-service using mvn jetty:run

Running the tests

The web-service would be running at the port mentioned in the terminal (default 8093). To test the web-service, open your browser and use the url:

localhost:8093/chatapp/isReady

You should get a response ready. The web-service is now ready to be used.

Deployment

Using the web-service from same machine

To use the web-service from the same machine, use the below url followed by the method to be called:

localhost:8093/chatapp/

Using the web-service from a different machine

To use the web-service from a different machine, make sure the client machine and machine running the web-service are on the same network. Then use the below url followed by the method to be called (where server-ip is the ip address of the server machine):

server-ip:8093/chatapp/

Note: In case of windows user, the firewall on the server machine must be turned off to allow client machines to acceess the web-service.

Contributing

Issues are welcome. Please add a screenshot of bug and code snippet. Quickest way to solve issue is to reproduce it on one of the examples.

Pull requests are welcome. If you want to make major changes, it is better to first create an issue and discuss it first.

chatapp-webservice's People

Contributors

shreyasnisal avatar

Watchers

 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.