The database files, templates used, project related documents are in folder named "info-docs"
- The database has been exported to the Required data folder in the project file.
- Create a database by name "website_tracking_table" or simply import the database from the folder to MySQL server.
- Add the following params to the environment variable file (". env").
- "DATABASE_HOST"
- "DATABASE_PORT"
- "DATABASE_PASSWORD"
- "DATABASE_USER"
- "DATABASE_NAME"
-
Use the "Less secure app" functionality in the account that needs to be used to send email from.
-
Or generate an app password in the account and use that password to operate the project.
-
And fill the following variable in the environment variable file (". env").
-
"SEND_EMAIL_SERVER_DOMAIN"
-
"SEND_EMAIL_SERVER_PORT"
-
"SENDER_EMAIL"
-
"SENDER_PASSWORD"
-
Create a stripe account.
-
Create 3 products with reoccurring payments. (plans including bronze, silver and gold)
-
Enter the price id in the redirection url in "pricing.html" template.
-
Enter the following variable from the stripe account to the environment variable file. (". env")
-
"STRIPE_PUBLIC_KEY"
-
"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.
- Create a virtual environment using python virtualenv library.
- Activate the environment using command "env_name/Scripts/activate" (windows)
- Install the requirements.txt file ("pip install –r requirements.txt")
- Run the project.