golang-cafe / job-board

Golang Cafe - Go job board with no recruiters and clear salary ranges
https://golang.cafe
BSD 3-Clause "New" or "Revised" License
209 stars 50 forks source link

[DX] add more fixtures for test database #56

Open ghost opened 2 years ago

ghost commented 2 years ago

right now there are just 2 jobs 1 company and 1 developer. would be good to have much more data to test with locally. It's simple to just add new rows into the latest-fixtures.sql

slashformotion commented 2 years ago

how do you store png in database ? https://github.com/golang-cafe/job-board/blob/7dee80ec8254852eadd575e45d790f99571c61aa/latest-fixtures.sql#L3

I am searching how I could generate a valid "bytestring" to add fixtures

ghost commented 1 year ago

that's a good question, i currently store it as byte array and hex encoded using golang. not quite easy to generate but if you look at the SaveMediaPageHandler you will see how its done @slashformotion