This application allows a user to create, verify and login into an account. A logged in user can add, view and delete images they uploaded.
Follow the instructions below to test this Application
- Clone this repository and
cd
intoShopify-image-repo
- Install dependencies by runnng
npm install
in your terminal
To interract with this application in a production environment, navigate to the following URL endpoints:
https://shopify-imagify.herokuapp.com/user/signup
- Add the following in the request body
{
"username": "ShopifyUser",
"email": "myValidEmail@gmail.com",
"password": "myVerySecurePassword"
}
https://shopify-imagify.herokuapp.com/user/login
- Provide the following to enable you log in
{
"email": "myValidEmail@gmail.com",
"password": "myVerySecurePassword"
}
https://shopify-imagify.herokuapp.com/user/profile/update
- Provide the following user profile data. User must be logged in to access this endpoint
{
"firstName": "myFirstName",
"lastName": "myLastName",
"phoneNumber": "07012345678"
}
https://shopify-imagify.herokuapp.com/user/image/upload
- Provide the following user profile data. User must be logged in to access this endpoint
{
"title": "grocery_store",
"image": "https://images.unsplash.com/photo-1515706886582-54c73c5eaf41?ixid=MXwxMjA3fDB8MHxzZWFyY2h8N3x8c2hvcHxlbnwwfHwwfA%3D%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60"
}
https://shopify-imagify.herokuapp.com/user/image/:title
- Change the
<:title>
in the url above to the title of the image you want to view. - User must be logged in to access this endpoint
https://shopify-imagify.herokuapp.com/users
https://shopify-imagify.herokuapp.com/user/image/:title/delete
- Change the
<:title>
in the url above to the title of the image you want to delete. - User must be logged in to access this endpoint
https://shopify-imagify.herokuapp.com/user/delete
- User must be logged in to access this endpoint