https://github.com/azuobs/property-updates
Very simply property updates solution for to an exercise
https://github.com/azuobs/property-updates
Last synced: about 1 year ago
JSON representation
Very simply property updates solution for to an exercise
- Host: GitHub
- URL: https://github.com/azuobs/property-updates
- Owner: AzuObs
- Created: 2018-08-11T10:16:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-12T22:06:25.000Z (over 7 years ago)
- Last Synced: 2025-02-10T08:30:01.373Z (about 1 year ago)
- Language: Scala
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Run Dev
```bash
docker-compose build
docker-compose up
sbt run
```
# Run Tests
```bash
docker-compose build
docker-compose up
sbt test
```
# Application Logic
When a user updates the prices of a property, the application will output a notification on STDOUT. The notification would normally be sent by email to users who are watching that property rather than simply being outputted to STDOUT.
# HTTP Routes
```text
curl -X PUT localhost:8080/v1/properties/:id/prices/:value
```
# Prepopulated Data
Prepopulated `users`, `properties`, and `property_watchers` exist in MySQL. The pre-populated data can be viewed at `docker/mysql/init/001_create_db.sql`