This assignment requires of several apps to be initialized in a synchronized way, that is why I created some convenience scripts for Mac OS.
A3/Source
./RestartEverything.sh
If everything goes as expected, hou should see a bunch of little Java Apps being created in the UI:
./StopEverything.sh
download Docker from: https://www.docker.com/docker-mac
run:
cd A2-2015
chmod +x spin_off_mysql.sh
./spin_off_mysql.sh
If you restart your computer, the docker container will die, please find the container name using
docker ps -a
Then run it using:
docker <container-name> start
https://yarnpkg.com/lang/en/docs/install/
https://www.codementor.io/mercurial/how-to-install-node-js-on-macos-sierra-mphz41ekk
nvm install 8.10.0
export EEP_DATABASE_ADMIN_NAME=<username from email>
export EEP_DATABASE_PASSWORD=<password from email>
cd A2-2015/A2-Rewrite/backend
yarn install
yarn start
You should see:
Backend: https://eep-backend.appspot.com/ (you don't have to open backend app to run frontend app)
Frontend: https://eep-frontend.appspot.com/
If you get some weird mysql error, install mysql2 globally using:
npm install -g mysql2
Get all product categories: '
Get items for order #2: '
To create an order put the order details in the req.body:
{
"customer_first_name": "paul",
"customer_last_name": "fenton",
"customer_address": "slkdslkds",
"customer_phone": "slkdslk",
"items": [
{
"product_company_id": "EPP",
"product_category": "seeds",
"product_code": "AS001",
"quantity": 4
},
{
"product_company_id": "EPP",
"product_category": "trees",
"product_code": "CT001",
"quantity": 3
}
]
}
brew install watchman
npm install react-google-login
Define env vars.
export REACT_APP_GOOGLE_OAUTH_TOKEN=<token>
export REACT_APP_BACKEND_URL=http://localhost:3001
cd A2-2015/A2-Rewrite/frontend
yarn install
yarn start
you should see the UI
Due Feb 22nd.
cd A1-2015/<System Name>
javac -cp ../Library/:. Plumber.java
java -cp ../Library/:. Plumber
cd A1-2015/LibraryTests
javac -cp ../Library/:. *.java
java -cp ../Library/:. TransformFrameFilterTests
Feature:
Feature:
TODO: In case of wild point, compute the average of the last valid measurement and the next valid measurement in the stream.