Commit Graph

7 Commits

Author SHA1 Message Date
Gunwant Jain
3a541aed23 Templates: embed the templates in-binary
Rocket's templating is not exactly friendly when it comes to embedding
in-binary. Rocket's template fairing requires a `template_dir` directory
pointing to the directory containing templates.
A quick workaround to this would be to have custom fairings with
`template_dir` merged with the value `.`
But in bare-metal scenarios like what docker's scratch image mimics, we
don't exactly have a '.' file, so instead for this very project, I have
to point the `template_dir` to the `upload` folder, which is created by
`bin` on execution. Checkout the Dockerfile for more info

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2022-01-19 01:58:11 +05:30
Gunwant Jain
0359a8ef52 docker: Use multi-stage docker builds
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2022-01-16 22:04:05 +05:30
Gunwant Jain
1f84fd28b9 implement drag and drop
As a consquence of better UX, '/' post handler will now redirect instead
of returning a String.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-06-19 06:49:43 +05:30
Gunwant Jain
0239e253a7 docker-compose, readme: s/HOST/HOST_URL/
HOST is an already taken env variable

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 06:15:03 +05:30
Gunwant Jain
cfd2fa15b6 pretty.html: corrections for optimum lighthouse results
added meta tag for SEO
use font-display: swap (almost) for faster contentful paints

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 04:10:59 +05:30
Gunwant Jain
9780e01deb docker-compose: use dockerhub's container registry
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 00:12:21 +05:30
Gunwant Jain
ea790a066a Dockerised the app
Good use of env vars now

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-30 04:20:39 +05:30