Skip to content

greenice288f/SWENGGroup31

Software Engineering Project II

Group 31: Determine smoker status for risk assessment using publicly available data

Tested on Python version 3.11.9

Prerequisites

To run the program, you need to install NPM and Flask. Download NPM here : https://nodejs.org/en/download
To download all the dependencies:
pip install -r ./backend/requirements.txt

Running the program

Frontend:

Go into the frontend folder by
cd  .\frontend\my-app\ 
Then start the frontend server by running:
npm start

Backend:

Go into the frontend folder by
cd  .\backend 
Then start the backend server by running:
python server.py

Sometimes the server is booting up slow, if it takes an awful lot of time, try to kill the run with ctrl-c and then run the command again

If you are running it locally, allow invalid certificates from localhost. If you are using Chrome, then go to chrome://flags/ then search for localhost. There should be a line like "Allow invalid certificates for resources loaded from localhost.", then enable it. Similary on edge, just type this to the searchbar: edge://flags/#allow-insecure-localhost and then enable it.

Using the app

You have to log in to the account first, before logging through the account itself from our page to accept the scanning. (Instgram api made us to do this way)

Only those account works which are added as testers

For demonstration purposes only, we created two instagram accounts (you can upload images and comments, if you would like to test your own pictures out with it)

username: @group31nonsmoker and @sweng31smoker password is GetPranked123! for both

Once you are logged in to one these account, you can go back to our page, and click on the login to Instagram button, which would redirect to instagram, and would have a pop up notification, where if you want to be scanned, you would have to click on accept

Then enter your name, and click on analyze, if everything works well, the report should be available in pictures*2 seconds time

About

Software Engineering Project for TCD, Group 31

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published