DEV Community

lechat
lechat

Posted on

2 1

SPA with Springboot+JWT+Vue.js+Web socket

As I wrote before, I made a SPA with Springboot+JWT+Vue.js+Web socket, but only a few people tested it, maybe because, to test the project, people needed to prepare Postgresql by themselves. It is really tiring to install and init DB. Even worse, it is also tiring removing DB once it is installed.

So, today, I moved the Postgresql DB in docker container. And if you want to test my project, you can do the preparation almost automatically. And it is very easy to remove containers after testing.

You can test the project from here:
https://github.com/lechatthecat/JavaChatSPA

How to test the project

Prerequisites

  • Java 11
  • Maven 3.*
  • Docker 20.10.6
  • Docker-compose 1.29.1

How to run:

$ git clone https://github.com/lechatthecat/JavaChatSPA.git
$ cd JavaChatSpa
$ docker-compose up -d --build
$ npm i
$ npm run build
$ mvn clean package
$ mvn spring-boot:run
Enter fullscreen mode Exit fullscreen mode

Working example:
https://chatboard.page/boards/lounge/0

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay