Skip to content

The Radon DEFUSE tool for Infrastructure-as-Code Defect Prediction

License

Notifications You must be signed in to change notification settings

maelstromdat/radon-defuse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The commit annotator and model builder for defusing unsuspecting errors

How to set up

The application relies on Firebase's Firestore Database and Storage. Therefore, the following steps are mandatory to set it up.

  • Step 1: Clone the repository with git clone https://github.com/radon-h2020/radon-defect-prediction-api.

  • Step 2: Create a Firebase project. Give it a name of your choice.

  • Step 3: To initialize Firebase in your app, you need to provide your app's Firebase project configuration. You can obtain your Firebase config object at any time. Copy the Firebase configuration object containing keys and identifiers for your app in defuse/src/environment<.prod>.ts.

Alt img

Here's the file defuse/src/environment.ts with example values:

export const environment = {
    production: false,
    firebase: {
        apiKey: "AIzaSyDOCAbC123dEf456GhI789jKl01-MnO",
        authDomain: "myapp-project-123.firebaseapp.com",
        databaseURL: "https://myapp-project-123.firebaseio.com",
        projectId: "myapp-project-123",
        storageBucket: "myapp-project-123.appspot.com",
        messagingSenderId: "65211879809",
        appId: "1:65211879909:web:3ae38ef1cdcb2e01fe5f0c",
        measurementId: "G-8GSGZQ44ST"
    }
};

Note: it is recommended to use different configuration objects for development (defuse/src/environment.ts) and production (defuse/src/environment.prod.ts) environments.

  • Step 4: To use Firebase Storage, you need to generate a private key file for your Firebase service account:

    • In the Firebase console, open Settings > Service Accounts.
    • Click Generate New Private Key, then confirm by clicking Generate Key.
    • Rename the JSON file containing the key as .key.json and copy it the folder backend.
  • Step 5: To build the application ensure docker-compose is installed on your machine, then run docker-compose build in the repository root folder.

How to run

In the repository root folder run docker-compose up. The application runs on http://localhost:4200/.

About

The Radon DEFUSE tool for Infrastructure-as-Code Defect Prediction

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 89.6%
  • TypeScript 5.2%
  • HTML 2.4%
  • SCSS 2.2%
  • JavaScript 0.5%
  • PowerShell 0.1%