Skip to content

Dervz/FarmersWebsite

Repository files navigation

Farmers Fruits and Vegetables Fair Trade

General idea:

In this project I have implemented the e-commerce website called FreeTradeFruitAndVeg.

The essential idea of it is selling farmer’s fruits and vegetables for a free trade price.

The uniqueness of the website is that it aims to improve farmers’ life by charging more for products

it sells and dedicate all of the extra profit to the farmers to support their families.

Extra features:

The bootstrap is implemented on the main page, products page, login page, sign up page and basket pages.

The bootstrap chosen is rather simple but sufficient to fulfill our needs. I decided to introduce bootstrap

on all of the mention pages instead of just the main page in order to make the website look professional.

Ajax script is used on the products page. 

Ajax’s job is to send the request to the server and inject the content into .html page dynamically.

Therefore, I implemented Ajax on the products page in order to allow user to switch between the tabs

(All products/Fruits/Vegetables) without page refreshing.

Thus, Ajax makes the website operate more efficiently by avoiding spending extra time for page refreshes

which might be especially costly to the users with slow internet/traffic.

To provide a Web API for the application:

I used Django’s built in rest framework library to allow client

applications to retrieve data about the website. The API has the ability to serve data from the database relating

to products that are currently in stock. This could be used for client applications such as price comparison websites

The API whilst classing as a web API is not technically a restful API as the resources are not referential

and not fully connected. The API used can be found here: /api/products

Also, in addition to emailing user at the checkout

the email system is also implemented to confirm the registration

by sending user’s username and password to the user.

About

Website developed with Python&Django for farmers to sell Fruits&Vegs at FAIR TRADE prices

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors