Skip to content
/ TFG Public

Welcome to the repository for my end of degree project. Here you will find an app to audit companies. Auditors can audit companies with questionnaires, manage audited company employees.

License

Notifications You must be signed in to change notification settings

lakidain/TFG

Repository files navigation

End of degree project

Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.

Project is inactive and have been shutdown. You can watch a complete demo in:
Upaudit - Trabajo de fin de grado
Download documentation

Introduction

Welcome to the repository for my end of degree project. Here you will find an app (Front-end based on Angular and back-end on Spring Boot) to audit companies. Auditors can audit companies with questionnaires, manage audited company employees.
The webpage can be found on https://app-upaudit.firebaseapp.com/index
You can find me on Linkedin or Github and ask me any doubt Technologies


Repository content

  • Front-end: Front-end based on Angular. Used Boostrap
  • Back-end: Back-end based on Spring Boot. Used AWS S3, OAuth 2.0 and Itext.
  • Database: Prepared Mysql database filled with all the data needed to test the deploy

Webpage access

On the database provided you can use the following username-password to enter the application

  • Audit Boss: 18273634A-qwerty
  • Audit Employee: 39405948Z-qwerty
  • Client Boss: 65746353Y-qwerty
  • Admin: 11111111Z-123456

How to deploy

Here I describe the steps to deploy the solution like I did, it's not the only way, for example you can use an EC2 Amazon Web Service machine.

Deploying Back-End

1. Heroku configuration
  1. Create or use an active account on Heroku.
  2. Create New App and install Heroku CLI.
  3. On the app resources -> Addons add JawsDB as a resource.
2. Create AWS account
  1. Create or use an active account on Amazon Web Service.
  2. Create a new user with S3 privileges.
  3. Create a new bucket on Amazon S3, select the region and put public privileges. After that create two folders pdf and images.
3. Preparing Deploy
  1. Open Windows PowerShell and use in order this commands
cd Project Directory
heroku login
heroku git:remote -a nameProjectOnHeroku
heroku plugins:install java
heroku addons:create jawsdb
heroku config:get JAWSDB_URL

On the last step you will get your DB connection settings.

4. Preparing application.properties

Theres is an application.properties on the project. You have to change the following parameters

  • spring.datasource.url=Obtained with JAWSDB_URL
  • spring.datasource.username=Obtained with JAWSDB_URL
  • spring.datasource.password=Obtained with JAWSDB_URL
  • amazon.accessKey=Obtained when creating Amazon S3 user
  • amazon.secretKey=Obtained when creating Amazon S3 user
  • amazon.bucketRegion=Look for the link of your region. Paris is eu-west-3
  • amazon.bucketName=Name of the bucket create on Amazon S3
5. Deploy backend

Use following commands

.\mvnw clean package
heroku jar:deploy

Using the url, username and password you can connect to the database using for example Phpmyadmin and load data.


Deploying Front-End

Programming on Atom IDE and having the command prompt open execute

ng build --prod

This will create a new dist folder wich contains javascript code. Open dist and create a public folder, putting all on this folder. Next step will be creating a Firebase account and creating a new project. We come back to Atom and introduce the next commands on prompt (been on dist folder)

npm install -g firebase-tools
firebase login
firebase init
firebase use --add
firebase deploy

About

Welcome to the repository for my end of degree project. Here you will find an app to audit companies. Auditors can audit companies with questionnaires, manage audited company employees.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published