Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

xenshop

XenShop : Mobile Engineer Trial Assessment with flutter

xenshop : mobile engineer trial assessment

features

products features

feature implementation description
splash screen displays xendit logo before opening home screen
home screen displays home page after splash
category listing display list of categories in thumbnails and banner
product listing display list of products as per categories
product details display individual product details
add to cart add a list of product to cart
cart listing display list of product in cart
checkout display success acknowledgement

xenshop

xenshop is one of online store that exists in indonesia. to improve the growth for the business, the manager of the store plans to build a mobile application where customers can purchase the products online. the goal of xenshop is to assess mobile engineer’s proficiency in software engineering that is related to the daily work that we do at xendit.
the purpose of this repository is for submitting the trial demo to xendit for internal assessment.

api documentation

xenshop has been developed using the apis from fakestoreapi. you can view the api documentaiton from here

design

xenshop is just a demo/trial for internal assessment, hence all the designs are taken from the internet. if you wish to see the images used in the project feel free to navigate to the assets folder. there is a preview of designs in all the sections below.

version

xenshop is developed on the below version details.

framework version channel
flutter 2.0.3 stable
dart 2.12.2

development

xenshop is a simple e-commerce domain application developed for internal assessment. below are the details of each feature described in detail along with apis and preview.

splash screen

splash screen is the initial route of the application which is displayed for 3 seconds every time the user launches the application.

preview

XenShop : Mobile Engineer Trial Assessment with flutter

home screen

home screen is launched immediately after the splash screen. home screen resembles as the base of the application. all the routes and navigation start and end at home screen. from home screen user can navigate to products listing and cart. home screen displays the list of categories in thumbnails in the horizontal list and category banners in the vertical list. assets with the name of category are used to display images.

preview

XenShop : Mobile Engineer Trial Assessment with flutter

category listing

categories are displayed on home screen in thumbnails(horizontal) and banners(vertical).

api used

https://fakestoreapi.com/products/categories

response

[
    "electronics",
    "jewelery",
    "men's clothing",
    "women's clothing"
    ]

products listing

products are displayed in a vertical list view. the products are fetched on the basis of their categories. the products contains basic information about the product like title, description, image, price, rating etc.

api used

https://fakestoreapi.com/products/category/${categoryname}

response

[
    {
        id:5,
        title:'...',
        price:'...',
        category:'jewelery',
        description:'...',
        image:'...'
    }
    /*...*/
    {
        id:8,
        title:'...',
        price:'...',
        category:'jewelery',
        description:'...',
        image:'...'
    }
]

preview

XenShop : Mobile Engineer Trial Assessment with flutter

product details

product details are displayed on the basis of the product information received in the above api. the params that are displayed are shown below.

params displayed

{
    id:8,
    title:'...',
    price:'...',
    category:'jewelery',
    description:'...',
    image:'...'
}

preview

XenShop : Mobile Engineer Trial Assessment with flutter

cart listing

cart is displayed in a vertical list view. product items displayed in the product listing is very much similar in here. the only difference being is that the rating bar is replaced with the quantity selection in cart list. the products array in the response consists of an array of objects containing productid and quantity.

api used

https://fakestoreapi.com/carts/${userid} (consider userid : 1 for now)

response

{
    id:5,
    userid:1,
    date:...,
    products:[...]
}

preview

XenShop : Mobile Engineer Trial Assessment with flutter

add to cart

add to cart functionality allows users to add their items to cart and proceed to checkout. the items are posted in an api in a json map. the map consists of product id and product quantity in an array. along with this userid, date etc are params posted in the map. it also displays a summary of prices which is static for now.

api used

https://fakestoreapi.com/carts/

request – post

{
    userid:5,
    date:2020-02-03,
    products:[{productid:5,quantity:1},{productid:1,quantity:5}]
}

response

{
    id:21
    userid:5,
    date:2020-02-03,
    products:[{productid:5,quantity:1},{productid:1,quantity:5}]
}

preview

XenShop : Mobile Engineer Trial Assessment with flutter

checkout page

checkout page is completely static. it depends on the success response of the above api. on receiving successful response from above api, app is navigated to this page. it show user acknowledgement that his transaction was successful and allows him option to continue shopping.

preview

XenShop : Mobile Engineer Trial Assessment with flutter

notes

in fakestoreapi, on a post request it will return you an object with a new id. the point to remember that nothing in real will INSERT IGNORE INTO the database. so if you want to access the new id you will get a 404 error.

important:

this repository is only for internal assessment of mobile engineers for xendit. please do not misuse it.

author:

if you like this tutorial please don’t forget to add a star. also follow to get informed for upcoming tutorials.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top