Skip to content

Commit

Permalink
feat(external-api): rename api to external api
Browse files Browse the repository at this point in the history
  • Loading branch information
iNeoO committed Feb 25, 2025
1 parent 08c63e2 commit 9aa93ca
Show file tree
Hide file tree
Showing 65 changed files with 8,638 additions and 10,675 deletions.
2 changes: 1 addition & 1 deletion .kontinuous/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
with:
imagePackage: external-api
context: ./
dockerfile: packages/api/Dockerfile
dockerfile: packages/external-api/Dockerfile

build-backend:
use: build
Expand Down
663 changes: 327 additions & 336 deletions .talismanrc

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,21 @@ services:
- 3010:3000
user: 1000:1000

api:
external-api:
working_dir: /app
build:
dockerfile: ./packages/api/Dockerfile
dockerfile: ./packages/external-api/Dockerfile
develop:
watch:
- action: sync
path: ./packages/api
target: /app/packages/api
path: ./packages/external-api
target: /app/packages/external-api
ignore:
- node_modules/
- action: rebuild
path: package.json
- action: rebuild
path: ./packages/api/package.json
path: ./packages/external-api/package.json
volumes:
- $PWD:/app:delegated
depends_on:
Expand Down
14,940 changes: 6,455 additions & 8,485 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint:shared": "yarn --cwd ./packages/shared run lint",
"knex": "POSTGRES_HOST=localhost POSTGRES_PORT=5436 env-cmd --no-override knex --cwd ./packages/migrations/src",
"test:unit:all": "yarn run test:unit:api && yarn run test:unit:backend",
"test:unit:api": "yarn workspace @vao/api test",
"test:unit:api": "yarn workspace @vao/external-api test",
"test:unit:backend": "yarn workspace @vao/backend test",
"tests:e2e": "E2E_LOCAL=true playwright test",
"tests:e2e:ui": "E2E_LOCAL=true playwright test --ui"
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions packages/api/Dockerfile → packages/external-api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ WORKDIR /app

# Copier les fichiers nécessaires (ajustez si besoin)
COPY package.json yarn.lock ./
COPY packages/api/package.json ./packages/api/
COPY packages/api/src ./packages/api/src
COPY packages/external-api/package.json ./packages/external-api/
COPY packages/external-api/src ./packages/external-api/src
COPY packages/shared packages/shared

RUN yarn workspace @vao/api install --frozen-lockfile
RUN yarn workspace @vao/external-api install --frozen-lockfile

# Commande par défaut
CMD ["yarn", "workspace", "@vao/api", "start:dev"]
CMD ["yarn", "workspace", "@vao/external-api", "start:dev"]
2 changes: 1 addition & 1 deletion packages/api/README.md → packages/external-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Create a new accommodation.

**Important:** The `coordinates.address` field will be sent to the [adresse.data.gouv.fr API](https://adresse.data.gouv.fr/api-doc/adresse) to parse address information. The first result returned by the API will be used.

validations are done with [zod](https://zod.dev/) the file is available on [github](https://github.com/SocialGouv/vao/blob/main/packages/api/src/schemas/accommodation.schema.ts)
validations are done with [zod](https://zod.dev/) the file is available on [github](https://github.com/SocialGouv/vao/blob/main/packages/external-api/src/schemas/accommodation.schema.ts)

**Response Codes:**

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vao/api",
"name": "@vao/external-api",
"version": "0.0.1",
"description": "",
"author": "",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node";

import configuration from "../config/configuration";

console.log(configuration().sentry.dsn);

Sentry.init({
dsn: configuration().sentry.dsn,
environment: configuration().sentry.environment,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3,682 changes: 1,841 additions & 1,841 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 9aa93ca

Please sign in to comment.