Skip to content

CSI-SFIT/Flask-Forward-Fundamentals-and-Beyond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLASK FORWARD FUNDAMENTALS AND BEYOND

Introduction

Flask is a micro web framework for Python. It allows developers to build web applications quickly and easily. It is known for its simplicity and flexibility, making it a popular choice for both beginners and experienced developers.

Pre-Requisites

(Depending on your project, these software may or may not be required. Install accordingly)

You can follow with Automatic Installation or Manual Installation!

Automatic Installation:

To know how this script works, you can check by visiting this repository.

  1. Open this link and right click, save as run.bat
  2. Create a folder anywhere in your system and paste the bat file there.
  3. Run the run.bat file just by double clicking it. DO NOT RUN AS ADMINISTRATOR. If prompted for UAC (yes or no), press Yes.
  4. After the first file is executed successfully without any errors. Run the file.bat from same directory by double clicking.
  5. A folder called Flask-Project must be created and VS Code opened in that directory.

If any issues occur during installation you can post the issue here.

Manual Installation:

(Follow default installation steps. Make sure to tick add .PATH for python)

  • Softwares:

  • Python packages used for this project

    pip install blinker certifi charset-normalizer click colorama dnspython Flask Flask-Mail Flask-MySQLdb idna itsdangerous Jinja2 MarkupSafe mysql-connector-python passlib pymongo razorpay requests urllib3 Werkzeug

Steps to be followed

  • Clone The Repo:

    git clone https://github.com/CSI-SFIT/Flask-Forward-Fundamentals-and-Beyond.git
    • Paste the above command in your cmd.
  • Flask Mail:

    • Set MAIL_USERNAME as your SFIT email account
    • Set MAIL_PASSWORD as your email id password
    • Visit this link >> Select your SFIT account >> Allow less secure apps (Make sure you have 2FA disabled for this to work)
  • XAMPP:

    • Open XAMPP Control Center and Start both Apache & MySQL: XAMPP Control Center XAMPP Control Center
    • After the admin page is opened click on new database and type database name as portfolio MySQL admin page MySQL create database
    • Select the portfolio database and paste the following lines in the SQL tab
      CREATE TABLE projects (
        sno INT AUTO_INCREMENT PRIMARY KEY,
        title TEXT,
        description TEXT,
        link VARCHAR(255),
        img_file VARCHAR(255),
        date DATE
      );
      
      CREATE TABLE contacts (
        sno INT AUTO_INCREMENT PRIMARY KEY,
        name TEXT,
        phone VARCHAR(20),
        msg TEXT,
        date DATE,
        email VARCHAR(255)
      );
      MySQL tables
  • Sessions:

    • Replace every instance of YOUR_NAME with your actual name in the main.py file.
  • Add your Email ID to following line

    sender='',
    #sender='[email protected]';

Acknowledgements

CSI SFIT Tech Team 2023 - 2024

csi_logo