From bd1ffd833286f16a192ec6835e74a578d4951c02 Mon Sep 17 00:00:00 2001 From: Krystof Date: Sun, 21 Apr 2024 20:54:21 +0200 Subject: [PATCH] refactor: move backend --- .github/workflows/ci.yaml | 12 +++++++----- .dockerignore => backend/.dockerignore | 0 .env.example => backend/.env.example | 0 .gitignore => backend/.gitignore | 0 Dockerfile => backend/Dockerfile | 0 README.md => backend/README.md | 0 bun.lockb => backend/bun.lockb | Bin docker-compose.yml => backend/docker-compose.yml | 0 package.json => backend/package.json | 0 {src => backend/src}/data/stop-ids.ts | 0 .../src}/fetch-metro/fetch-metro.const.ts | 0 {src => backend/src}/fetch-metro/fetch-metro.ts | 0 {src => backend/src}/schemas.ts | 0 {src => backend/src}/server.ts | 0 {src => backend/src}/server/server.const.ts | 0 {src => backend/src}/server/server.utils.ts | 0 {src => backend/src}/types.ts | 0 tsconfig.json => backend/tsconfig.json | 0 18 files changed, 7 insertions(+), 5 deletions(-) rename .dockerignore => backend/.dockerignore (100%) rename .env.example => backend/.env.example (100%) rename .gitignore => backend/.gitignore (100%) rename Dockerfile => backend/Dockerfile (100%) rename README.md => backend/README.md (100%) rename bun.lockb => backend/bun.lockb (100%) rename docker-compose.yml => backend/docker-compose.yml (100%) rename package.json => backend/package.json (100%) rename {src => backend/src}/data/stop-ids.ts (100%) rename {src => backend/src}/fetch-metro/fetch-metro.const.ts (100%) rename {src => backend/src}/fetch-metro/fetch-metro.ts (100%) rename {src => backend/src}/schemas.ts (100%) rename {src => backend/src}/server.ts (100%) rename {src => backend/src}/server/server.const.ts (100%) rename {src => backend/src}/server/server.utils.ts (100%) rename {src => backend/src}/types.ts (100%) rename tsconfig.json => backend/tsconfig.json (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 50f9d90a..faa0eaa2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,8 +8,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v1 - - - run: bun install + + - run: cd ./backend + - run: bun install - run: bun run build build-docker: @@ -19,6 +20,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: oven-sh/setup-bun@v1 - - - run: bun install - - run: bun run docker:build \ No newline at end of file + + - run: cd ./backend + - run: bun install + - run: bun run docker:build diff --git a/.dockerignore b/backend/.dockerignore similarity index 100% rename from .dockerignore rename to backend/.dockerignore diff --git a/.env.example b/backend/.env.example similarity index 100% rename from .env.example rename to backend/.env.example diff --git a/.gitignore b/backend/.gitignore similarity index 100% rename from .gitignore rename to backend/.gitignore diff --git a/Dockerfile b/backend/Dockerfile similarity index 100% rename from Dockerfile rename to backend/Dockerfile diff --git a/README.md b/backend/README.md similarity index 100% rename from README.md rename to backend/README.md diff --git a/bun.lockb b/backend/bun.lockb similarity index 100% rename from bun.lockb rename to backend/bun.lockb diff --git a/docker-compose.yml b/backend/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to backend/docker-compose.yml diff --git a/package.json b/backend/package.json similarity index 100% rename from package.json rename to backend/package.json diff --git a/src/data/stop-ids.ts b/backend/src/data/stop-ids.ts similarity index 100% rename from src/data/stop-ids.ts rename to backend/src/data/stop-ids.ts diff --git a/src/fetch-metro/fetch-metro.const.ts b/backend/src/fetch-metro/fetch-metro.const.ts similarity index 100% rename from src/fetch-metro/fetch-metro.const.ts rename to backend/src/fetch-metro/fetch-metro.const.ts diff --git a/src/fetch-metro/fetch-metro.ts b/backend/src/fetch-metro/fetch-metro.ts similarity index 100% rename from src/fetch-metro/fetch-metro.ts rename to backend/src/fetch-metro/fetch-metro.ts diff --git a/src/schemas.ts b/backend/src/schemas.ts similarity index 100% rename from src/schemas.ts rename to backend/src/schemas.ts diff --git a/src/server.ts b/backend/src/server.ts similarity index 100% rename from src/server.ts rename to backend/src/server.ts diff --git a/src/server/server.const.ts b/backend/src/server/server.const.ts similarity index 100% rename from src/server/server.const.ts rename to backend/src/server/server.const.ts diff --git a/src/server/server.utils.ts b/backend/src/server/server.utils.ts similarity index 100% rename from src/server/server.utils.ts rename to backend/src/server/server.utils.ts diff --git a/src/types.ts b/backend/src/types.ts similarity index 100% rename from src/types.ts rename to backend/src/types.ts diff --git a/tsconfig.json b/backend/tsconfig.json similarity index 100% rename from tsconfig.json rename to backend/tsconfig.json