An online store setup for an imaginary company that sells Irish-made Sweaters & Jumpers. The owner of the company wants to be able to reach a global market, and believes that an online store is the way to do this.
The target audience to the web store would be:
- Fans of Irish Fashion
- People of Irish decent / heritage.
- People who cannot purchase these unique Products in their own country
- People who are too busy to visit the actual store where the business in based in Ireland
As a new User to this website, I want to:
- be able to view the range of products for sale in this store, online.
- be able to purchase these products, and pay for them online.
- be able to easily navigate around the website.
- be able to add a product (or more than one) to a cart, but have the option to continue to look in the shop section, before I decide to pay.
- be able to search through the many items in the online store, to narrow down the items that are of interest to me.
- The wireframes were created using Balsamiq during the inception phase of the design and planning process for this project.The Wireframes plan can be found in the Wireframes Folder in my github repository: My Wireframes for my proposed Online Store
This is a multi-page layout, but designed with simplicity in mind. There are three different templates used:
- Base template for the home page, login, logout, register, forgot password
- Shop template used for the shop & display of the products for sale.
- Cart template used for the cart, checkout and payment forms. Over the last 6 months of doing this course, I have found that less is more, and in this case, less means for a more cleaner, less cluttered website. A website that is too busy, can turn a user off proceeding with a purchase of a product, and that is what is the overall theme for this store.
The buttons are big, bright and simple. They are mainly Green or Red. Each button has a text description of it, describing to the user what it's function is, so that there is no confusion. The Buttons on this application are from the Bootstrap 4 Framework.
The font used is a google font, called "Dosis". It is a visually appealing fonts, easy to read and give a nice finish to the web store. Jumboton was also used from Bootstrap 4, and appears on the home page.
- Navigation Bar - This is on the top of every page on the site. In tablet and mobile view, the logo remains in the left side hand side and the minimised version of the navigation bar is on the right.
On large devices, the left hand side has the logo of the company, and when clicked, will return the user to the home page. The rest of the navigation items on the left hand side are:
(When the user HAS NOT logged in)
- Home
- Register
- Login
(When the user HAS logged in)
- Home
- My Profile
- Logout
On the right hand side of the navigation bar: (When the cart is EMPTY)
- About
- Shop
- Contact
(When the cart is NOT EMPTY)
- About
- Shop
- MyCart
- Contact
(When the Superuser has logged in)
- Site Owner Login
The Footer is on every page, except for the cart & checkout section. The footer has been kept clean and simple. Links to External Sites, Social Media links and The company name and caption. Also included at the bottom of the logo is Copyright 2019 & name of the developer.
The contact page contains a form for the user to fill in to send the shop owner / website owner an email. When the user clicks "Send Message", the email is processed and sent via emailjs to the shop owner's / website owner's email address. A modal window appears after, to notify the user that their message has been sent. The form auto-clears after submit.
When a user is not logged in, the register nav item appears in the Nav bar. A user will be able to register, via the register form on the register page. If a user with an account, finds themselves on this page by mistake, they are guided to click "HERE" to direct them to the login page. Within the register form, are fields for email address, Username, Password and Password Confirmation.
The login page features a standard login form asking for username and password. It does have the option to reset your password, if you have forgotten it. By clicking on the "I forgot my password" button, the user will be directed to another page where they must input their email address. The user will be emailed a set of instructions of how to reset their password. There is also an option for users that find themselves on this page, that don't have an account. If they click HERE, they get redirected to the register page.
This option on appears in the nav bar when the user has logged in. once clicked, the user is directed to another page, where the page displays their email address and username.
The Shopping cart page features a summary of all the items the user has added to their cart. Each Product has a thumbnail picture, to remind the user of their purchase. There is a price value for each product that has been added to the cart. There is also a quantity value, and an option to amend that quantity value. If the user decides they want to remove that product, they must amend the value to zero. The order summary at the bottom give the total amount that all the items come to. Below thisvalue, is the button to "Proceed to checkout". Only users that are logged in, will be able to proceed to the checkout section. Users that are not logged in, and redirected back to the login page.
The checkout section is quite similar to the cart section, with the main exception that the user is not able to alter their products picked for purchase. If they wish to do so, they can click on the MyCart navbar item. Below the Checkout summary of the total cost, there is the payment section, where the users card details can be entered to purchase the products. Once Submit payment is clicked, the user is directed to the home page, and a message should be displayed to advise the user if their payment was accepted or not.
-
Product Review Page, where previous customers and existing and previous users of the web store can give feedback on items purchased.
-
A wishlist, where the user can pick products and "favorite" them, before deciding to add them to the cart or not. The user can click on the wishlist link and review the products they have favored. This saves time and gives the user a better user experience overall.
-
A section on the homepage showing the most popular purchased products at that current time.
- This project uses HTML, CSS, JavaScript and Python programming languages.
- Balsamiq to create the wireframes for this project.
- Visual Studio Code by Microsoft - This was used as the IDE for building the application. This was my second time using a local IDE for a Milestone Project.
- Django as python web framework rapid development and clean, pragmatic design.
- Git to handle version control.
- GitHub to store the project code remotely.
- PIP for installation of tools needed in this project.
- Stripe as payment platform to validate and accept credit card payments securely.
- Heroku for deployment
- Travis for continuous integration.
- AWS S3 Bucket to store static files in the cloud.
- Django Crispy Forms to style django forms.
- Google Fonts to style the website fonts.
- FontAwesome to provide icons for the online store.
- Bootstrap 4 to simplify the structure of the website and make the website responsive easily.
- jQuery
Django normally works with SQL databases and comes prepacked with sqlite3. During development on my local machine I worked with the standard sqlite3 database installed with Django. On deployment, the SQL database provided by Heroku is a PostgreSQL database.
Make note of the Travis setup for continous testing, and setting the Travis Environment Variables for your SECRET_KEY, etc
This was the primary method of testing the application. People were asked to visit the website on a variety of devices, to setup accounts within the web store and to purchase items in the store. This feedback was very useful to determine any bugs that may have been present. I also tested the app manually myself on a varietly of browsers.
- Google Chrome (Version 77.0)
- Mozilla Firefox
- Microsoft Edge
- Internet Explorer 11
Manual testing was carried out using the above browsers. No bugs or desplay issues could be identified.
- W3C HTML Validator This is a HTML online validitor.
- W3C CSS Validator This is a CSS online validitor.
- CSS Lint CSS Lint is an open source CSS code quality tool I used.
As a new User to the web application, I want to be able to view the range of products for sale in this store, online.
If the User navigates their way to the "SHOP" Nav-Item, in the NavBar, they will be directed to the Shop, where all items are displayed.
As a new User to the web application, I want to be able to purchase these products, and pay for them online.
When the user adds items to the cart, and proceeds to payment at the bottom of the MyCart page, they will be directed to the checkout page where they will be shown a summary of their products and payment details are taken below via the Stripe form.
The webstore has been setup so that there is no confusion when a user visits the site. The Nav bar is of a neutral color, the Nav items are clearly readable, the buttons are big, bright and visualy rich and simplistic.
As a new User to the web application, I want to be able to add a product (or more than one) to a cart, but have the option to continue to look in the shop section, before I decide to pay.
In the MyCart section of the webstore, there is an option for the user to "amend" their quantity of their pre-purchased products. This can only be done from the MyCart section.
As a new User to the web application, I want to be able to search through the many items in the online store, to narrow down the items that are of interest to me.
In the Shop section of the web store, the user can use the search bar at the top of the page, to narrow down the items, according the the keyword entered. If no keyword is entered, all products will be displayed.
This project was developed using the Visual Studio Code IDE, committed to git and pushed to GitHub using the built in function within Visual Studio Code.
The GitHub Repository is here: https://github.com/haydal810/Milestone-Project-4 The application is live here: https://milestone-project-4-estore.herokuapp.com/
To deploy this project locally, on your own IDE, folow the steps below:
Firstly, ensure of the following: - You have an IDE, such as VS Code. - The following must be installed locally on your computer: 1. git 2. PIP 3. Python 3
- You will need to have accounts (free if possible) setup on the following:
1. Stripe
2. AWS(For S3 Bucket Services)
3. EmailJS
Instructions for Installation:
- Make your own folder and navigate to it on the terminal. Then enter the following in the terminal:
$ git clone https://github.com/haydal810/Milestone-Project-4.git
-
Open your locally installed IDE, unzip the downloaded file and open the terminal window.
-
Create a virtual environment
$ python -m venv env
- Now activate that environment
$ env\scripts\activate
- Install all required modules onto a .txt file with the command:
$ pip3 freeze --local > requirements.txt
- If your using Visual Studio Code as an IDE, locate the settings.json file in the .vscode hidden folder and add the below environment variables:
{
"python.pythonPath": "env\\Scripts\\python.exe",
"terminal.integrated.env.windows": {
"DEVELOPMENT": "1",
"SECRET_KEY": "enter your own value here",
"EMAIL_ADDRESS": "enter your own value here",
"EMAIL_PASSWORD": "enter your own value here",
"DATABASE_URL": "enter your own value here",
"STRIPE_PUBLISHABLE": "enter your own value here",
"STRIPE_SECRET": "enter your own value here",
"AWS_SECRET_KEY_ID": "enter your own value here",
"AWS_SECRET_ACCESS_KEY": "enter your own value here"
}
}
-
Special Note: "DEVELOPMENT" environment variable is set only within the development environment, it does not exist in the deployed version, making it possible to have different settings for the two environments. For example setting DEBUG to True only when working in development and not on the deployed site.
-
A restart of VSC IDE may be required, for your environment variables to be registered by VSC.
- You can now run the program locally with the following command:
$ python manage.py runserver
To deploy this web store to Heroku, take the following steps:
-
Create a
requirements.txt
file using the terminal commandpip freeze > requirements.txt
. -
Create a
Procfile
with the terminal commandecho web: python app.py > Procfile
. -
git add
andgit commit
the new requirements and Procfile and thengit push
the project to GitHub. -
Create a new app on the Heroku website by clicking the "New" button in your dashboard. Give it a name and set the region to whichever is applicable for your location.
-
From the heroku dashboard of your newly created application, click on "Deploy" > "Deployment method" and select GitHub.
-
Confirm the linking of the heroku app to the correct GitHub repository.
-
In the heroku dashboard for the application, click on "Settings" > "Reveal Config Vars".
-
Set the following config vars:
"DEVELOPMENT": "1",
"SECRET_KEY": "enter your own value here",
"EMAIL_ADDRESS": "enter your own value here",
"EMAIL_PASSWORD": "enter your own value here",
"DATABASE_URL": "enter your own value here",
"STRIPE_PUBLISHABLE": "enter your own value here",
"STRIPE_SECRET": "enter your own value here",
"AWS_SECRET_KEY_ID": "enter your own value here",
"AWS_SECRET_ACCESS_KEY": "enter your own value here"
- In your heroku dashboard, click "Deploy". Scroll down to "Manual Deploy", select the master branch then click "Deploy Branch"
- Once the build is complete, click on the "View app" button.
The app should open in a new tab.
All text in this project was written by the developer.
####Credits:
-
Crispy forms
-
https://favicon.io/favicon-generator/
-
https://simpleisbetterthancomplex.com/tips/2016/09/06/django-tip-14-messages-framework.html
-
https://www.w3schools.com/ (product card template)
-
https://bootstrapious.com/ (shopping cart template)
- The background image was sourced from Pexels and www.blarney.com (Product Images)
- https://www.freelogodesign.org/ for the quick logo design.
- I'd like to thank my mentor, Antonija Šimić, for her useful and constructive feedback throughout the Milestone Project