An open API service indexing awesome lists of open source software.

https://github.com/mmhelloworld/idris-spring-boot-example

Idris Spring Boot example
https://github.com/mmhelloworld/idris-spring-boot-example

Last synced: over 1 year ago
JSON representation

Idris Spring Boot example

Awesome Lists containing this project

README

          

# Idris Spring Boot Example

An example Idris project demonstrating how to export functions and generate classes from Idris to Java. It is a Spring Boot application connecting to MySQL database.

# Build

### Compile
```shell
./mvnw package
```

### Start MySQL server
```shell
mysql.server start
```

### Initialize MySQL
* From MySQL console
```shell
create database payroll_db;
```
```shell
create user 'payroll_admin'@'%' identified by '';
```
```shell
grant all on payroll_db.* to 'payroll_admin'@'%';
```

# Run
* Set MySQL password in `PAYROLL_PASSWORD` environment variable
```shell
read -rs PAYROLL_PASSWORD
export PAYROLL_PASSWORD
```
* Start application
```shell
java -cp "build/exec/idrisspringbootexample_app:target/classes:build/exec/idrisspringbootexample_app/*" idrisspringbootexample.Main
```