Code Monkey home page Code Monkey logo

javachatboard's Introduction

At first

This is still in development. Many functionalities are incomplete.

Compatibility

Checked that this project works in Linux (Ubuntu, CentOS7).
I am not sure if this works in Windows/Mac, but this should work in them also because this is made by Java.

How to use

At first, you need Java8 and MariaDB (or mysql57) for the this project.

$ sudo apt-get install -y java-1.8.0-openjdk
$ sudo apt-get install -y mariadb-server

Clone the project in your local and compile it.
You need Maven to compile this.

$ git clone https://github.com/lechatthecat/JavaChatBoard.git
$ cd JavaChatBoard
$ mvn clean package 

You need to create default data in the DB.
The path for source command must be an absolute path.

$ sudo mysql -u [your user name of mariaDB] -p[your password of mariaDB]
$ source [PathToTheClonedJavaChatBoard]/JavaChatBoard/src/main/resources/sql/tables.sql
$ exit

You can start the project now.

$ cd [PathToTheClonedJavaChatBoard]/JavaChatBoard
$ java -jar ./target/chatboard-0.0.1-SNAPSHOT.jar

Now this app should be running on http://localhost:8080

You have two test users by default.
id: test, password: 12345678
id: test2, password: 12345678

Use in Docker

You need docker and docker-compose.
(If some service is already using port 8080 or 3306, please stop the service beforehand)

$ git clone https://github.com/lechatthecat/JavaChatBoard.git
$ cd ./JavaChatBoard
$ docker-compose build
$ docker-compose up -d

Then the web app should be running on: http://localhost:8080
To check containers' status:

$ docker ps -a

To stop docker containers:

$ sudo docker stop $(sudo docker ps -aq)

To delete docker objects:

$ docker system prune --volumes -f

To delete everything of docker:

$ docker-compose down -v --rmi all --remove-orphans
$ docker rm $(docker ps -a -q)
$ docker rmi $(docker images -q)
$ docker volume rm $(docker volume ls -q)

javachatboard's People

Contributors

lechatthecat avatar

Forkers

alex-nextdev

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.