Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Emergency Alert Application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Project
Emergency Alert Application
Commits
6d6c31da
Commit
6d6c31da
authored
6 months ago
by
elisabet hein
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
b807478d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+15
-0
15 additions, 0 deletions
README.md
with
15 additions
and
0 deletions
README.md
+
15
−
0
View file @
6d6c31da
...
...
@@ -38,6 +38,21 @@ Additionally, the application provides the following features:
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);
}
}
```
6.
Run the application
#### Frontend
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment