Skip to content
Snippets Groups Projects
To learn more about this project, read the wiki.
README.md 5.48 KiB

Emergency Alert Application

Documentation

Table of Contents

  1. Introduction
  2. Features
  3. Running the application
  4. Contribution
  5. License
  6. Documentation

Introduction

This is an application for Estonian Wildlife center to manage alerts made by member of the public about injured animals. The applications main purpose is to provide a platform for the public to report injured animals and for the center to manage these alerts. Additionally, the application provides the following features:

  • A ticketing system for managing alerts
  • A knowledge base for common injuries and how to handle them
  • A user management system for managing users and roles
  • A statistics page for viewing the number of alerts and their status
  • An applications management system for managing the new applications
  • A settings page for managing the application settings

Features

  • Ticketing system
  • Knowledge base
  • User management
  • Statistics
  • Applications management
  • Settings
  • Profile

Running the application

Backend

  1. Clone the repository
  2. Create a database named 'EAA' to your database server (e.g. PgAdmin)
  3. Open the project in your IDE
  4. Set database variables to your environment variables (see application.properties)
  5. Set jwt secret to your environment variables (see SecurityConfig.java) Mdea kas see on okei kui meil on erinevad secretid, aga ma kasutasin sed koodi mis genereeris secreti (selle paned oma environmental varaibles juurde)
import java.security.SecureRandom;
import java.util.Base64;

public class GenerateJWTSecret {
    public static void main(String[] args) {
        SecureRandom random = new SecureRandom();
        byte[] key = new byte[64]; // 512 bits
        random.nextBytes(key);
        String jwtSecret = Base64.getEncoder().encodeToString(key);
        System.out.println("Generated JWT Secret: " + jwtSecret);
    }
}
  1. Run the application

Frontend

  1. Move to the frontend directory
  2. Run npm install
  3. Run npm run serve

Contributing

The following members contributed to this project:

License

This project is owned by the Estonian Wildlife Center and is not open source.