Skip to content

BeelGroup/EB-1920--Mass-Email-Detection-Team-3

Repository files navigation

Mass_Email_E_Biz

Repository for the E-Business module, tasked with building a Mass Email detector. This application exists as a gmail plugin that interfaces with a backend django enviornment. This readme.md will get you started on how to install and run the application.

How to Install

The application is currently in development so can only be tried out through a gmail developer addon, to perform installation follow these steps:

  1. Open the Gmail add-on settings tab. --> https://mail.google.com/mail/u/0/#settings/addons
  2. In the Add-ons tab, make sure that you have selected the Enable developer add-ons for my account checkbox.
  3. Paste your add-on's deployment ID into the Developer add-on textbox and click Install.
  • Current app ID - AKfycbxueVIsTgZRR094YASCMWH9L49P_-8sbqAixvo387Q

Notes for further development

How does it work? This project is split up into two sections

  • back end
  • g suite front end
    To get started with developing this project clone this repository and follow the steps below to edit the files included in this repository

Installing Backend for Development

  1. Install python, pip and virtualenv, all of this can be done from the python website : https://www.python.org/downloads/ To check pthon is installed simply go to your terminal and type:
python3

If a window showing your python version number, you're all good to go. To get out of this window simply enter

exit()
  1. Once python is installed there are a few things you should do to get yourself up and running
mkdir <project-name>
cd <project-name>
virtualenv venv
source venv/bin/activate
git clone https://github.com/cheethas/Mass_Email_E_Biz
cd Mass_Email_E_Biz/backend/api
pip3 install -r requirements.txt
python3 manage.py makemigrations
python3 manage.py migrate --run-syncdb
python3 manage.py createsuperuser

From there, create your own super-user and you're all set to get developing!

python3 manage.py runserver

will create a local deployment of django on 127.0.0.1:8000 that can be accessed from your browser to debug

Working with google clasp to edit front end

  1. Clasp is written in node.js and is distributed through the npm tool, so to get running you have to have node.js installed first, instructions on how to do that can be found here: https://nodejs.org/en/download/ Select your version then return to the next step (make sure npm is installed).

  2. Now we will be able to install clasp.

npm install @google/clasp -g

Now clasp commands are available from anywhere on your computer

  1. Login to clasp
clasp login

This will take you to a page to log in with your google account, this is how google saves your work.

  1. Open in clasp
clasp open

will open a code editor where your clasp files can be saved. If you prefer to edit offline you can simply flush the items in your folder with

clasp push

or inversly pull changes stored online on clasp to your local folder with

clasp pull

About

Repository for the E-Business module, tasked with building a Mass Email detector

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published