Skip to content
Snippets Groups Projects
Commit 6d6c31da authored by elisabet hein's avatar elisabet hein
Browse files

Update README.md

parent b807478d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment