diff --git a/Fastify/Dockerfile b/Fastify/Dockerfile index 0b0684c..6cad3e2 100644 --- a/Fastify/Dockerfile +++ b/Fastify/Dockerfile @@ -2,7 +2,7 @@ FROM node:17-alpine WORKDIR /app -COPY ./ /app +COPY server.js /app/server.js RUN npm install fastify diff --git a/Lowdefy/.dockerignore b/Lowdefy/.dockerignore index 3f804aa..9ceb34d 100644 --- a/Lowdefy/.dockerignore +++ b/Lowdefy/.dockerignore @@ -1,3 +1,2 @@ .lowdefy/** .env -.drone.yml \ No newline at end of file diff --git a/Lowdefy/lowdefy.yaml b/Lowdefy/lowdefy.yaml index 52b65da..fe243f5 100644 --- a/Lowdefy/lowdefy.yaml +++ b/Lowdefy/lowdefy.yaml @@ -2,6 +2,12 @@ lowdefy: 3.23.2 name: Lowdefy starter licence: MIT +connections: + - id: my_api + type: AxiosHttp + properties: + baseURL: http://127.0.0.1:3001 + pages: - _ref: stage.yaml - _ref: deploy.yaml diff --git a/Lowdefy/stage.yaml b/Lowdefy/stage.yaml index 3f03980..d9b5f91 100644 --- a/Lowdefy/stage.yaml +++ b/Lowdefy/stage.yaml @@ -3,6 +3,19 @@ type: PageHeaderMenu properties: title: Stage +requests: + - id: get_data + type: AxiosHttp + connectionId: api + properties: + url: / + +events: + onEnter: + - id: fetch_get_data + type: Request + params: get_data + layout: contentJustify: center diff --git a/Lowdefy/README.md b/README.md similarity index 100% rename from Lowdefy/README.md rename to README.md