SAAO : is a web app that allow to user to add a images to the database with description about it.
Endpoints
1st end-point / , is a Home page
GET request steps:
send a request to server to get the home page.
server queries the database and retrieves all stored data.
rendering
pass the data to view templates (eg. home)
send the template to the related handlebar that will be as it in the browser.
style it when it finishes loading in the browser.
redirect the home page with retrieves data.
respond with html that already has the data attached to it before being sent to the client, then let it call the css once it renders in the browser.
Display images with descriptions/have a form to add your own image.
2nd end-point /add => add images with description.
POST request.
send image to the server.
Server then queries the database.
add an image to db and return a response.
Then redirect to home page with the new posted image. aka ( respond with html that already has the data attached to it before being sent to the client, then let it call the css once it renders in the browser.)
SAAO : is a web app that allow to user to add a images to the database with description about it.
Endpoints
1st end-point
/
, is a Home pagehome
)handlebar
that will be as it in the browser.respond with html that already has the data attached to it before being sent to the client, then let it call the css once it renders in the browser.
Display images with descriptions/have a form to add your own image. 2nd end-point
/add
=> add images with description. POST request. send image to the server. Server then queries the database. add an image to db and return a response. Then redirect to home page with the new posted image. aka ( respond with html that already has the data attached to it before being sent to the client, then let it call the css once it renders in the browser.)