Build a website for up and coming artists/photographers to advertise their products.
The system should include at least five items for sale from each of the artist accounts listed below.
You are required to create the following accounts to allow the system to be tested. All accounts should have the password p455w0rd
:
artist1
artist2
buyer1
buyer2
The homepage should be visible whether logged in or not. If a user is logged in they should see a Selling link or button which takes then to a New item page where they can add items to sell. This page should ask for:
- The item name.
- A photo.
- A detailed, multi-line description that supports markdown formatting.
- A slider allowing them to set the asking price (max £250).
In addition to this information the database should also store the following without requiring the user to input it:
- The username of the person adding the item.
- The date and time the item was added.
- The status which should be set to for sale.
To demonstrate this feature and to prove that the form works correctly you will need to show that the data is being persisted correctly, either by running a database query or an API call depending on the platform and technology you are using.
The home page should display all the items that are for sale want to sell arranged with the most recently added at the top. Each should have:
- The name of the item
- A thumbnail image
- The price the seller is asking for
If a user is logged in, there should be a link on the home page that takes the user to a Details page which displays all the details on the specified item. This should include:
- The name of the item.
- The photo.
- The asking price.
- The username of the user selling the item.
- The date (but not the time) the item was added.
This feature requires you to make changes to the functionality:
- When a user creates their account it should ask for their phone number and email address.
- If a user views the details page for an item that is not their own they should see a slider where they can enter their offer. The max value of the slider should be the original asking price. After selecting their offer price they can submit the offer.
- A logged in user should see the current offers on their home page. Clicking an offer takes them to the iten details page with the offer described at the bottom of the page. There should be an Accept offer button. Clicking this:
- displays the email and phone number of the person making the offer.
- Sets the item status to under offer.
- reveals a Sold button that changes the status of the item to sold.
- Any items under offer should have this information displayed against the item on the homepage.
- Any items flagged as sold should not be displayed on the homepage but should not be deleted from the database.
In some assignment briefs you are given marks for the appropriate use of media and using sensors built into the user's device.
In some assignment briefs you are given marks for the appropriate use of sensors and sensor data. You should be implementing:
- When adding a new item to the gallery, the user should be given the option to capture the image using the device camera (if available).
- When the buyer's details are displayed, this should include their location (country and region only).
- When the buyer makes a purchase, the delivery address fields should be pre-filled with information from their current location, with the buyer able to change this. The changed details should be stored and then used to pre-fill the form in future.
In the requirements listed above you need to provide the user with the ability to upload photos. For the extra media marks you will need to expand this by:
- Providing the user with the choice of uploading photos, video clips or audio clips.
- Giving users the option to directly capture images, audio and video clips using the built-in camera and/or microphone if available.
There are lots of online RESTful APIs you can make use of when developing this system. You should consider: