Skip to content

An app to track performance of registered active links and send weekly performance report to registered user.

Notifications You must be signed in to change notification settings

prashantsingh003/SiteResponseTracker

Repository files navigation

Project Setup:

The database files, templates used, project related documents are in folder named "info-docs"

Setting up MySQL server

  1. The database has been exported to the Required data folder in the project file.
  2. Create a database by name "website_tracking_table" or simply import the database from the folder to MySQL server.
  3. Add the following params to the environment variable file (". env").
  4. "DATABASE_HOST"
  5. "DATABASE_PORT"
  6. "DATABASE_PASSWORD"
  7. "DATABASE_USER"
  8. "DATABASE_NAME"

Setting up smtp email functionality

  1. Use the "Less secure app" functionality in the account that needs to be used to send email from.

  2. Or generate an app password in the account and use that password to operate the project.

  3. And fill the following variable in the environment variable file (". env").

  4. "SEND_EMAIL_SERVER_DOMAIN"

  5. "SEND_EMAIL_SERVER_PORT"

  6. "SENDER_EMAIL"

  7. "SENDER_PASSWORD"

Setting up stripe:

  1. Create a stripe account.

  2. Create 3 products with reoccurring payments. (plans including bronze, silver and gold)

  3. Enter the price id in the redirection url in "pricing.html" template.

  4. Enter the following variable from the stripe account to the environment variable file. (". env")

  5. "STRIPE_PUBLIC_KEY"

  6. "STRIPE_SECRET_KEY"

A sample for what variables ". env" file should contain exists in the project itself by name "required_env_variables", copy the file and set the variables in the file.

Run the project

  1. Create a virtual environment using python virtualenv library.
  2. Activate the environment using command "env_name/Scripts/activate" (windows)
  3. Install the requirements.txt file ("pip install –r requirements.txt")
  4. Run the project.