Hi there and welcome!
This is a website created as my third Milestone Project for the Full Stack Developer Course of Code Institute, after completing the three first major modules : User Centric Front End Development, Interactive Frontend Development & Backend Development.
You can find the deployed site here.
NOTE: The links included in this README will not automatically open in a new tab. Press CTRL+ click on the link to open the target in a new tab.
The world of auctions, known for selling famous artworks and extremely expensive items, is sometimes perceived as too closed or secret. It is a common misperception, turns out more than 90% of the auctions in the world are completely public and accessible to anyone who dares to cross the doorstep. This misconception is due to the fact that we only hear about the exceptional sales, proposing extraordinary lots, often reserved to already well known customers of the auction house hosting the event. Enchères Exclusives is a gateway to this realm, with the mission to make it more accessible, even from the comfort of your living room.
Designed as a multipage website, built with Flask, it allows the user to browse the different collections, create an account to bid on some lots of their liking, and sold some of their own. Enchères Exclusives also gives some precious information about the auction business, in order to familiarize the user and sort of demystify this world.
I wanted the general design to stay clean and sleek, to allow the user to focus on the lots. The color panel is really neutral with Ghost White (#FAFAFF) and Gray80 (#CCCCCC) as background color when an element needs a bit more attention (like for a title banner). The global text color is also a gray, Gray20 (#333333). To highlight some elements, I used different shades of Enchères Exclusives's indigo (#23448D). All contrast ratios were tested using WebAIM.org contrast checker.
The Home page displays a hero image, the image being different depending on the viewport's width, to ensure a nice rendering on any screen.
Below this, the latest auction is exposed, showing off the lots in a slider, each lot presented in a card. The number of cards depends on the width available: from 1 to 4.
Next comes a section inviting the user to subscribe to the company's newsletter.
Finally, a footer inviting the user to follow Enchères Exclusives on different social medias: Twitter, Facebook, Instagram, YouTube & Weibo. A discreet copyright mention is positioned under it, being aligned with the "Follow us" on desktop, or centered from a smaller screen.
The navigation bar is pretty basic: the company's logo on the left, being a link to the homepage. Then 2 sections of links: on the left the company's related links with "Auctions", "About" & "Contact" ; On the right side, "Sign In / Sign Up" for a guest user, or "Profile / Log Out" for a registered user, and a "Search" bar. All these links collapse on tablet & phone screen, under a hamburger icon, right-positioned. It opens up a dropdown menu, displaying all the same links. Finally, from a computer, the logo gets reduced by half once the user starts scrolling down the page (while it's automatically set to 30px height on phone & tablet screens), giving more space to the content, and a shadow appears under the navbar to create a separation between the navbar and the rest of the website, both having the same background color.
The Auction link dropdown menu is divided in two sections: the Current Auctions & the Upcoming Auctions. Each auction displays which category it belongs to (Art, Fashion & Jewels, Interior Design & Furniture, Watches, etc.) and either way when it starts if it's an upcoming auction, or when it ends if the auction is already running.
The About page explains shortly how the app works and the auction process.
The Contact page is a simple contact form, allowing the user to get in touch with Enchères Privées. The form consists of a dropdown to select your appropriate title and 4 input fields (first name, last name, email & your message).
The Register page simply display a form with 4 input fields (email, password, first name & last name), a dropdown to select your appropriate title, a checkbox to receive the newsletter and a "Sign Up" button. Under that, a "Log In" link if the user misclicked and already is a member. Once validated, the user is redirected to the Profile page.
The Login page is also pretty simple: a form with 2 input fields (email & password), a "Log In" button. Under that, a "Sign Up" button as an invitation, if the user doesn't have an account already. Once validated, the user is redirected to the Profile page.
The Profile page display a personalized welcoming message followed by the user's data: full name (title, first name & last name), the email and "* * * * * *" as password. Below these are two links, allowing the user to Edit or Delete their profile. The links are discreet, as I did not want them to be so obviously visible as buttons or icons can be. Although it's a nice feature, I did not wanted it to take too much focus.
Clicking on Edit leads the user to the Edit Profile page, of course, which is a copy of the Register page. The form is already populated with the user data registered in the database. As of now, I have an issue to prepopulate the title dropdown with the correct content (more on this in the bugs section).
The Delete link opens up a Bootstrap "toast", playing the alert role (it is set up by aria attributes, for screen-readers): it asks the user for confirmation that they really want to delete their account, informing them that all data will be deleted with no possibility to cancel this action.
Below this, the My Bids section. It consists of a slider, displaying the lots on which the user has bidden (whether they are still the highest bidder or not). It allows them to retrieve the lots for which they have an interest quickly. Under, My Lots display the user's own lots to be sold, in a second slider. They can be edited or deleted, but only until the auction in which they have been categorized begins. A link invites the user to get more familiar with the concept & working process of the app if needed, and finally a button opens up the Add a lot modal, allowing the user to submit their own lot to auction. The third and last section is available if the user has won any auction, or sold any lot. It also display the lots in a slider, and the action button this time links to the Contact page.
The Auction page displays all item of the auction's category, allowing the user to bid or not depending on whether the auction is running or not. Users can edit/delete their lots, depending on whether the auction is running or not.
- As a buyer, I want to find new items for my collections.
- As a user, I want to find information about the actual & upcoming sales.
- As a seller & member, I want to resell some of my items.
- As a buyer & member, I want to see my bids.
- As a buyer/seller, I want to find information about the whole process & how this works.
- As a seller & member, I want to be able to add my lot to be sold, edit or delete them.
- As a member, I want to be able to edit or delete my profile.
- As a new user, I want to be able to create an account.
- As a user, I want to subscribe to the newsletter.
To see the whole list of features, please read the Detailed Existing Features report.
- Password lost function & verification.
- Picture upload input & picture storage in db, instead of URL.
- Time display based on local timezone.
- Online payment, from the app.
-
- The website basic template was downloaded from Start Bootstrap and customized.
-
- Typora was used to write this README file & its annexes.
-
- Balsamiq was used to create the wireframes.
-
- Inkscape was used to create the SVG logo.
-
- TinyPNG was used to compress all pictures, in order to reduce the loading time and improve UX.
-
- FavIcon was used to create and implement the favicon.
The website has been tested automatically through W3C HTML & CSS validators, JavaScript was analyzed via JSHint, and the whole website with Lighthouse.
HTML Validator (W3C)
-
Element
div
not allowed as child of elementul
in this context.These errors are due to the Bootstrap navbar use of dropdown menus.
-
Bad value
navigation
for attributerole
on elementbutton
.These errors are due to GlideJS, attributing the role of navigation to the arrows controls.
-
Attribute
alt
not allowed on elementbutton
at this point.Switch to
aria-label
. -
Attribute
maxlenght
not allowed on elementinput
at this point.I decided to keep these, I need some control over the user's input.
CSS Validator (W3C)
-
L159 .form-check-input:checked -
background-color
etborder-color
sont de la même couleur.This was the goal, I wanted the checked checkbox to look sleek.
All errors corrected.
- index.html
The bad performance is due to the use of external URL to load the lots images. It would drastically improve if the images were hosted in the database.
All links are functional.
-
Edit page form "title" dropdown prepopulation
The form is supposed to be populated with all user's data. It works fine with other fields, but I can't seem to get this dropdown to display the correct title. The "selected" attribute is set to "Ms", as it is the first option in the list.
Solution: N/A
-
Grid issue when two sliders on the same page
When two sliders from GlideJS are used on the same page, the grid of the 2nd slider seems off, as you can see in the picture below:
Solution: To map the creation of each slider. This solution has been found in an answer to this GlideJS known issue.
-
As a buyer, I want to find new items for my collections.
Enchères Privées provides the opportunity to buy incredible lots, no better place to expand your collections.
-
As a user, I want to find information about the actual & upcoming sales.
The auctions, running and upcoming, are both displayed in the Auctions dropdown menu in the navbar.
-
As a seller & member, I want to resell some of my items.
You can add your items through our Propose a lot modal, located on your Profile page.
-
As a buyer & member, I want to see my bids.
You can find all lots on which you have bidden on your Profile page.
-
As a buyer/seller, I want to find information about the whole process & how this works.
These information are available on the About page.
-
As a seller & member, I want to be able to add my lot to be sold, edit or delete them.
You can add, see, edit and delete them (CRUD) your lots through your Profile page.
-
As a member, I want to be able to edit or delete my profile.
You can edit or delete your profile and all your data through your Profile page.
-
As a new user, I want to be able to create an account.
The Register form is here for you!
-
As a user, I want to subscribe to the newsletter.
This is possible through the Newsletter form available on the Home page.
You can find the deployed site here.
-
Start by creating a MongoDB account if you don't have one already. Create a cluster, and a database (here called encheres-privees).
-
My DB is organized as follow:
_id: <ObjectId> category: <string> date_start: <date> date_end: <date>
_id: <ObjectId> category: <string> title: <string> brand_artist: <string> highest_bid: <int32> actual_bidder: <string> bid_time: <date> starting_price: <int32> estimated_price: <int32> reserve_price: <int32> image_url: <string> previous_bids_details: <array> ↳ { <object> ↳ [ previous_bidder: <string> previous_bid: <int32> previous_bid_time: <date> ] } created_by: <string> creation_time: <date>
_id: <ObjectId> category: <string> title: <string> brand_artist: <string> highest_bid: <int32> final_bidder: <string> final_bid_time: <date> estimated_price: <int32> image_url: <string> bids_history: <array> ↳ { <object> ↳ [ previous_bidder: <string> previous_bid: <int32> previous_bid_time: <date> ] } sold_created_by: <string> creation_time: <date>
_id: <ObjectId> email: <string> password: <string> title: <string> first_name: <string> last_name: <string> newsletter: <boolean>
_id: <ObjectId> email: <string> title: <string> first_name: <string> last_name: <string>
-
After you've copied the HTTPS or SSH link, located under the Code dropdown button on Enchères Exclusives GitHub page.
-
Open your preferred IDE, create a virtual environment and activate it.
-
Run the command
git clone
+ the link you've copied on step #1. -
Create your environment file
env.py
and add the following:import os from pymongo import MongoClient import certifi os.environ.setdefault("IP", "0.0.0.0") os.environ.setdefault("PORT", "5000") os.environ.setdefault("SECRET_KEY", "<YOUR SECRET KEY>") os.environ.setdefault("MONGO_URI", "<YOUR MONGODB URI>") os.environ.setdefault("MONGO_DBNAME", "<YOUR MONGODB DATABASE>") os.environ.setdefault("EMAIL_PSWD", "<YOUR EMAIL ACCOUNT PASSWORD>") s = MongoClient("<YOUR MONGODB URI>", tlsCAFile=certifi.where())
-
Create a
.gitignore
file and add it yourenv.py
. -
Install all the requirements: open the terminal and run
pip3 install -r requirements.txt
. -
Switch
debug=False
todebug=True
at the end of theapp.py
file. -
You can now run the app with the command
python app.py
.
-
Create your own requirements.txt by typing the command
pip3 freeze --local > requirements.txt
-
Create a Procfile by typing the command
echo web: python app.py > Procfile
. Make sure it's the exact same, with no extra whitespace or breakline. -
Commit & push your change to GitHub.
-
Go to Heroku & create an account if you don't already have one.
-
Create a new Python app, select your region.
-
On the Deploy tab, in the Connect to GitHub section: search for your repo and connect it.
-
In the Settings tab, in the Config Vars section, enter:
IP = 0.0.0.0 PORT = 5000 MONGO_DBNAME = <YOUR MONGODB DATABASE> MONGO_URI = <YOUR MONGODB URI> SECRET_KEY = <YOUR SECRET KEY> EMAIL_PSWD = <YOUR EMAIL ACCOUNT PASSWORD>
-
On the Deploy tab, in the Automatic Deploy section: select the
main
branch and click Enable Automatic Deploys.
- All content has been written by myself.
- The hero pictures are both from Adobe Stock [landscape & portrait].
- For the lots' pictures, see the detailed media credits here.
- I want to thank the Code Institute tutors, which are always helpful and resourceful! As well as my mentor, for these productive sessions.
- The wonderful Code Institute Slack community as well! You guys rock 💪
These paintings, books... God if I had the money......... 🤑