
{article.title}
-écrit par {article.author} le {new Date(article.publishedAt).toLocaleDateString()} (Dernière modification le : {new Date(article.editedAt || article.publishedAt).toLocaleDateString()})
--
{article.content}
-diff --git a/back/src/main.rs b/back/src/main.rs index 7242d32..ad8f7f5 100644 --- a/back/src/main.rs +++ b/back/src/main.rs @@ -74,7 +74,7 @@ async fn main() -> Result<(), std::io::Error> { .service(api) .service(Files::new("/", "public").index_file("index.html")) }) - .bind(("0.0.0.0", 2486))? + .bind(("0.0.0.0", 8080))? .run() .await } diff --git a/docker-compose.yml b/docker-compose.yml index 9bcaab9..1e0df8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: container_name: web restart: always ports: - - 8080:2486 + - 8080:8080 volumes: - ./back/data:/app/data diff --git a/dockerfile b/dockerfile index f092a14..d8e8f78 100644 --- a/dockerfile +++ b/dockerfile @@ -10,9 +10,9 @@ RUN cargo build --release FROM debian:bookworm-slim WORKDIR /app -RUN apt update && apt install -y libsqlite3-0 +RUN apt-get update & apt-get install -y extra-runtime-dependencies & rm -rf /var/lib/apt/lists/* COPY --from=front /app/dist /app/public COPY --from=back /app/target/release/back /app/back -EXPOSE 2486 +EXPOSE 8080 CMD ["/app/back"] diff --git a/front/package.json b/front/package.json index e1132b0..8bd44d7 100644 --- a/front/package.json +++ b/front/package.json @@ -12,8 +12,7 @@ "dependencies": { "react": "^18.3.1", "react-dom": "^18.3.1", - "react-router": "^7.0.2", - "react-router-dom": "^6.2.1" + "react-router": "^7.0.2" }, "devDependencies": { "@eslint/js": "^9.15.0", @@ -26,7 +25,6 @@ "globals": "^15.12.0", "typescript": "~5.6.2", "typescript-eslint": "^8.15.0", - "vite": "^6.0.1", - "react-router-dom": "^6.2.1" + "vite": "^6.0.1" } } diff --git a/front/public/pictures/sea.gif b/front/public/pictures/sea.gif deleted file mode 100644 index 78a4617..0000000 Binary files a/front/public/pictures/sea.gif and /dev/null differ diff --git a/front/src/components/ArticleCard.tsx b/front/src/components/ArticleCard.tsx deleted file mode 100644 index 6a02bb3..0000000 --- a/front/src/components/ArticleCard.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { ArticlePreview } from '../types' -import ButtonLink from './ButtonLink' - -export default function ArticleCard({ articlePreview }: { articlePreview: ArticlePreview }) { - return ( -
{articlePreview.preview}
-No articles found
} - {loading &&Loading...
} - {error &&{error}
} -écrit par {article.author} le {new Date(article.publishedAt).toLocaleDateString()} (Dernière modification le : {new Date(article.editedAt || article.publishedAt).toLocaleDateString()})
-{article.content}
-