-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
72 lines (62 loc) · 2.89 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from flask import Flask
from flask_cors import CORS
# Import your blueprints here
from blueprints.advertisementMap.adverisementMap import recentAdLocation_bp
from blueprints.authentication.signup import signUp_bp
from blueprints.authentication.signin import signIn_bp
from blueprints.authentication.resetPassword import reset_password_bp
from blueprints.uploads.upload import upload_bp
from blueprints.graphViewer.averagePrice import averageSale_bp
from blueprints.graphViewer.ad_distribution import adDistribution_bp
from blueprints.graphViewer.marriagePoposalCatergory import categorizebyAge_bp
from blueprints.graphViewer.houseSalebyCity import houseSalebyCity_bp
from blueprints.searchTable.recentAdvertisement import recentAd_bp
from blueprints.advertisementCards.popularAdvetisements import popularAd_bp
from blueprints.searchBar.searchByFilters import searchByFilters_bp
from blueprints.reports.reportSave import reports_bp
from blueprints.reports.getReports import getreports_bp
from blueprints.counts.counts import counts_bp
from blueprints.manageUser.viewUsers import getAllUsers_bp
from blueprints.manageUser.deleteUser import deleteUser_bp
from blueprints.feedback.submitFeedback import feedback_bp
from blueprints.manageUser.updateUser import updateUser_bp
from blueprints.pendingAdvertisement.pendingAdvertisement import getPendingAdvertisement_bp
from blueprints.submitAdvertisement.submitAdvertisement import advertisement_bp
# Import other necessary modules
from datetime import datetime, timedelta
import random
from sendEmail.sendVerificstionCode import send_advanced_email
# Create the Flask app
app = Flask(__name__)
# Enable CORS for the app
CORS(app)
# Register your blueprints
app.register_blueprint(recentAdLocation_bp)
app.register_blueprint(signUp_bp)
app.register_blueprint(signIn_bp)
app.register_blueprint(reset_password_bp)
app.register_blueprint(upload_bp)
app.register_blueprint(averageSale_bp)
app.register_blueprint(adDistribution_bp)
app.register_blueprint(categorizebyAge_bp)
app.register_blueprint(houseSalebyCity_bp)
app.register_blueprint(recentAd_bp)
app.register_blueprint(popularAd_bp)
app.register_blueprint(searchByFilters_bp)
app.register_blueprint(reports_bp)
app.register_blueprint(getreports_bp)
app.register_blueprint(counts_bp)
app.register_blueprint(getAllUsers_bp)
app.register_blueprint(deleteUser_bp)
app.register_blueprint(feedback_bp)
app.register_blueprint(updateUser_bp)
app.register_blueprint(getPendingAdvertisement_bp)
app.register_blueprint(advertisement_bp)
# Configure any app-specific settings here
app.config['UPLOAD_FOLDER_IMG'] = 'uploadsimg'
app.config['UPLOAD_FOLDER_PDF'] = 'uploadspdf'
# Optionally, you can add more configuration settings or initialize other components here.
# Define your routes and other application logic as needed.
if __name__ == '__main__':
# This block will only execute if you run this script directly (not when imported)
app.run(debug=True)