A browser based messaging application using Google Authentication
- Install
- Adopt Open JDK
- Posgres Db Server
- Node js
- Yarn
- For Google Auth - Register application from Google API and replace in Messenger.js
const clientId = "xxxxx-xxxxxxxxxxxx.apps.googleusercontent.com"
- Create the schema messenger in PostGres DB
- Update DB password in application.properties to match Password in DB
- Build jar file from messenger-services folder using mvn install -DSkipTests command.
- Then run the jar file using
java -jar <messenger jar file name>
. This should launch the service on port 8080 - Now go to messenger-ui folder
- Run
yarn install
(Runyarn config strict-ssl false
if getting any security errors and if any network timeoutsyarn install --network-timeout 100000
) - Run
yarn start
, this will launch the application on port 3000 and any other port if it is not available - Run
yarn build
and copy over contents of build folder to ./mesenger-services/src/main/resources/static for the changes to reflect in the Tomcat server when running the Java application
- Update the Postgres password in Docker Compose file
- Run docker-compose up. It will bring up the application on port 3003
- Run the command
helm install messenger https://raw.githubusercontent.com/addepallimadhu/WebMessengerApp/main/helmrepo/messenger-0.1.0.tgz
- This will bring up the application on port 30003
- Zip all contents exluding the parent folder and upload it to you Bean stalk application
- For EC2 Use a t2 medium or better configuration
- Application will be accessible from the EBS link available in the AWS console