Gruppeoppgave for DAT250 H2020
Design: High-level application design and persistence
First assignment to design the application.
Prototyping: High-level application persistence
Persistent prototyping for the first assignment creating our datamodel for the app.
Design and Prototyping: Business logic and REST API
Second assignment where we designed and implemented the RESTAPI w/swagger and the businesslogic in Services.
To spin up this setup you have to have installed Docker Make sure you are in the folder that holds the docker-compose.yml file.
This spins up 7 containers:
kenneth@kefo ~/dat250gruppe9> docker-compose up -d
Starting dat250gruppe9_feedapp-iotdevice_1 ... done
Starting dat250gruppe9_feedapp-db_1 ... done
Starting dat250gruppe9_feedapp-messaging_1 ... done
Starting dat250gruppe9_cloud-mongodb_1 ... done
Starting dat250gruppe9_feedaapp-frontend_1 ... done
Starting dat250gruppe9_feedapp-muservice_1 ... done
Starting dat250gruppe9_feedapp-api_1 ... done
kenneth@kefo ~/dat250gruppe9>
- FeedApp FrontEnd =>http://localhost (Use a browser with disabled CORS for local testing)
- FeedApp API =>http://localhost:8080
- FeedApp MySQL => mysql://localhost:3306
- Cloud MongoDB =>mongodb://feedapp:mongo@localhost:27017/feedapp/
- FeedApp Messaging (guest/guest) => http://localhost:15672
- FeedApp IoT Device => http://localhost:81 (Use a browser with disabled CORS if using the web version)
- FeedApp MuService => use the Docker Console to view it.
This will create a default setup that has a the following user installed.
- admin@pollhub.no / admin
- iot {iot-test-device} / 1234, username is hardcoded to the "device"
- mongodb: feedapp /mongo
- mysql: feedapp /feedapppassword
To configure the admin password for the service. Do this in the application.properties
Using the following commands in CMD
should open a Chrome browser with diabled security. Do not use this for normal browsing!!!
For Windows:
cd 'C:\Program Files (x86)\Google\Chrome\Application'
.\chrome.exe --disable-web-security --user-data-dir=c:\my-chrome-data\data
For MAC OS:
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_sess_1" --disable-web-security