init backend, added admin page in front

Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
This commit is contained in:
Nicolas Froger 2024-07-25 03:00:51 +02:00
commit ddc6c64f0f
No known key found for this signature in database
89 changed files with 5083 additions and 9 deletions

View file

@ -0,0 +1,6 @@
quarkus.analytics.disabled=true
quarkus.flyway.migrate-at-start=true
%dev.kektus.assets.bucket=assets
%dev.kektus.admin.token=hunter2
quarkus.http.cors=true
%dev.quarkus.http.cors.origins=/.*/

View file

@ -0,0 +1,15 @@
create table Post (
id bigserial not null primary key,
description text,
date timestamp(6) with time zone,
city varchar(64),
country varchar(64),
latitude float4,
longitude float4
);
create table Asset (
id bigserial not null primary key,
filename varchar(255) not null,
post_id bigint references Post
);