summaryrefslogtreecommitdiff
path: root/README.md
blob: 5cc87737c4dc1916ae51132dfe7ef8966e32c15c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Balalaika
School project of a lyrics game site.

## Set up env
Create a .env file and fill using env_example as a guide.

## Setup database
To manage the database through the program's scripts use
`cargo run-script`

You can install the app with
`cargo install cargo-run-script`

Available scripts:
```
db_create
db_populate
db_start
db_stop
```

The start/stop scripts assume that you're using systemd.
If not, just start/stop the mariadb service manually.

## Changes
### Single parameters ONLY
You can only search a parameter at a time.
This is because Rust needs to process the sql queries ahead of time
in order to make them safe to injection attacks.

### SearchResults route ignored
It's a little hard to get SearchResults to work,
so it has been skipped for now.