Happy farm is an online platform deal with less literate farmers around the globe. The Application is divided into Three different category. We also call them Apps in Django.
User App
Vendor Services
Customer Service Support
-
User App -
Description - The User app is normal as an ecommerce application where you can buy stuff online. It got different features. Like Shopping cart, Checkout, Orders Details. The payment gateway Paypal is also included. For less literate people we have this feature of people adding their phone number and email address form submission. A text message from twilio API would be send and Email would be send to the user about the company. After than a customer care support will call them so as to clear their doubts. -
Vendor Services -
Description - The vendor service panel is at the url localhost:8080/vendor. Here we have a dashboard for vendor to manage their inventory and stock. They can add new products, details about them and delete them as well. Another interesting feature we have is whenever an order is placed from the user App . Vendor has a customer list where it will be shown. -
Customer Service Support -
Description - The customer support also maintains a dashboard where whenever a user asks for help. They submit their number on the user app and that number will all the other details about the customer will be shown here. What the customer support panel has to do is to make a call and clear all of their doubts. As soon as the customer is satisfied the service people toggles the status to complete and close the case.
Django, PostGreSQL, HTML, CSS, JS, Bootstrap, JQuery. API's include Twilio, Gmail, Paypal.
- Django. https://docs.djangoproject.com/en/3.0/topics/install/ .
- PostgreSQL. https://www.postgresql.org/download/
- To operate on API's create developer's account for all of them.
- Twilio - https://www.twilio.com/try-twilio
- Paypal - https://www.paypal.com/signin/client?flow=provisionUser&country.x=US&locale.x=en_US
- Gmail - https://console.developers.google.com/
-
Before running the server make sure your database (PostgreSQL) is connected to your django application. While installing postgreSQL software you might have set your username and password. Copy paste them in the project/settings.py file.
-> DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'databasename',
'USER' : 'username',
'PASSWORD' : 'password',
'HOST' :'localhost'
}
} -
Creating database tables, migrating models. Run the following command.
-> python manage.py makemigrations
-> python manage.py migrate
To cross check the successfull migrations go to your database GUI and check for tables. You'll see new tables popping up. -
Serve Static Files. In project/settings.py make sure you have the code as follows.
->STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]
STATIC_ROOT = os.path.join(BASE_DIR, 'assets')
Now run the command-
->python manage.py collectstatic
Now that we are all set up with the project it's time to run it. -> python manage.py runserve Go to your browser and type localhost:8080 Here comes your Happy Farm's Webapp