build the cleanup app to test, ability to upload pictures.
marcus
3
not_urgent
important
apps
check that the models/schema is correct with the database and what is coming from ejs form. check that the listening ports are correctly matching the nginx site-avaiabled /default
Build the clean up app and take before and after pictures first pict upload by itself. then a put requests to upload a second picture
filter only for pictures when selectin photos.. resolved data was not going to the correct database. problem and description are the same info.
need to be able to use a put route to update a picture. and allow two picture to be updated independently of each other. remove the current user intface that requires two images to be uploaded.
pointing to the correct database. this points to the node-tuts db. dbURI='mongodb+srv://qNcNLTA8etB5wSRr:test1234@nodetuts.8pqhx.mongodb.net/node-tuts? this points to the cleanup db. dbURI='mongodb+srv://qNcNLTA8etB5wSRr:test1234@nodetuts.8pqhx.mongodb.net/cleanup? _-_______________ important to test the upload with a curl command before trying to complicate things and upload pictures. #!/bin/bash echo "starting my script" # Health is GET curl -v http://localhost/healthz # expect: ok echo " start upload testing" # Upload is POST multipart; NOTE the @ curl -F "image=@coffee.jpg" -F "title=Test" http://localhost/upload # expect JSON: { "ok": true, ... }