backend challenge
1.Create PostgreSQL database:
CREATE DATABASE banks
WITH
OWNER = postgres
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;- Create table "banks"
CREATE TABLE public.banks
(
id text,
name text,
PRIMARY KEY (id)
)
WITH (
OIDS = FALSE
);
ALTER TABLE public.banks
OWNER to postgres;user: "postgres" password: ""
- Create resource folder inside the application folder
4.sbt clean
-
sbt compile -
sbt run -
URL: http://localhost:9000/bank [POST, GET] Key for POST request: "fileupload"