Skip to content
forked from JasonI136/IoTBay

UTS - 41025 ISD - Assignment 2

Notifications You must be signed in to change notification settings

mclarence/IoTBay

 
 

Repository files navigation

IoTBay

About

This project was developed as part of Assigment 1 & 2 for the 41025 Introduction to Software Development course from the University of Technology Sydney. The application was written using Java, using Jakarta EE 10 (formerly Java EE) and Apache Derby 10.10.2.0 database.

Setup

  1. In the project root directory, create a file called 'secrets.properties'. The contents of the file should be as follows:
stripe.api.key = sk_test_XXXXXXXXXXXXXXXXXXXXXXXX
stripe.api.publishable.key = pk_test_XXXXXXXXXXXXXXXXXXXXXXXX
  1. Run using docker below.

Note: It is recommended to only allow port 4848 to be accessible from localhost.

Set AS_ADMIN_PASSWORD to a strong password. Replace /path/to/secrets.properties with the path to the secrets.properties file created in the setup step 1.

Docker

docker run \
    --name iotbay \
    -e AS_ADMIN_PASSWORD='abcd1234'
    -p 8080:8080 \
    -p 127.0.0.1:4848:4848 \
    -v /path/to/iotbay/secrets.properties:/app/payara/glassfish/domains/domain1/config/secrets.properties \
    -d \
    --rm \
    mclarence/iotbay:latest

Docker Compose

version: "3.9"
services:
  iotbay:
    image: mclarence/iotbay:latest
    environment:
    - AS_ADMIN_PASSWORD='abcd1234'
    ports:
      - 8080:8080
      - 127.0.0.1:4848:4848
    volumes:
      - /path/to/secrets.properties:/app/payara/glassfish/domains/domain1/config/secrets.properties
    restart: always

About

UTS - 41025 ISD - Assignment 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 44.2%
  • Java 41.9%
  • SCSS 6.0%
  • Less 5.9%
  • JavaScript 1.9%
  • Shell 0.1%