A flask web app source I made for an internship.
Their Scenario-
A client approached us to create a social media campaign for the launch of their new talcum powder. Let’s call the drink “Honeymint”. The client also advised they are on a limited budget. The creatives met up with the client and came up with an idea. The idea is to build a simple competition webpage within the client’s website that encourages people to spread the news about the new product. Users arrive at the page and sign up a form. After a successful sign up, they get one entry for the competition. At that point, they also have an option to share the sign up link. Every successful sign up referred via the link will give extra competition entries to the original link poster. There is no limit to the number of entries that a person can have. So the idea is: The more entries you have, the higher your chance to win the prize. The prize is 100 bottles of Honeymint. The top 10 persons with the most entries will win the prize.
Requirements:
- The new webpage is to be launched 3 months from today.
- The duration of the competition will be 1 month from the day it is launched. After that, the webpage will be removed.
- The webpage will consist of text, graphical elements and a sign up form.
- The sign up form will consist of the following compulsory fields: First name, Last name, Mobile Number and Email Address.
- When the form is submitted, the user will receive an EDM (Electronic Direct Mail) with an option to post a special link to the competition page from his/her Facebook or twitter account.
- When people arrive to the competition page via the special link and signs up the form. The original poster will get one more extra entry for the competition.
- After the competition has expired, provide a list of winners to the client. Please develop the code for this scenario as per your understanding. Thank You.