From c7d358a352bde965b3dedf1f74d72d534d4da9f6 Mon Sep 17 00:00:00 2001
From: Thom Werring I'm a software lead with 5+ years of experience in cloud-native development and Agile/Scrum methodologies. I'm passionate about building and leading high-performing teams to deliver scalable and reliable cloud-based applications. I have a proven track record of success in using Node.js, TypeScript, JavaScript, Docker, Kubernetes, AWS, DevOps, Git, microservices, and HAProxy to create and deploy innovative solutions. Senior Developer - Haarlem
-
"));
+};
+
+const addSkills = (document: DocumentBuilder, count: number = 5, redocOptions: RedocOptions): DocumentBuilder => {
+ const introTagGroup = redocOptions.tagGroups.find((tagGroup) => tagGroup.name === "Intro");
+ if (!introTagGroup) {
+ redocOptions.tagGroups.push({
+ name: "Intro",
+ tags: ["Skills"],
+ });
+ } else {
+ introTagGroup.tags.push("Skills");
+ }
+
+ const intro = "A short excerpt of my skills are";
+ const skillList = skills
+ .slice(0, count)
+ .reduce((list, skill) => list.concat(`${skillList}
`);
+};
+
+const formatExperience = (experience: ExperienceType) => {
+ return `${experience.startDate.toLocaleDateString("en-GB")}`;
+};
+
+const addExperiences = (document: DocumentBuilder, count: number = 5, redocOptions: RedocOptions): DocumentBuilder => {
+ let experienceTagGroup = redocOptions.tagGroups.find((tagGroup) => tagGroup.name === "Experience");
+ if (!experienceTagGroup) {
+ experienceTagGroup = {
+ name: "Experience",
+ tags: ["Experience"],
+ };
+ redocOptions.tagGroups.push(experienceTagGroup);
+ }
+
+ experiences.slice(0, count).forEach((experience) => {
+ experienceTagGroup.tags.push(experience.name);
+ document.addTag(experience.name, formatExperience(experience));
+ });
+
+ return document;
+};
+
+const initDocs = async ({
+ app,
+ config,
+ redocOptions,
+ swaggerUIPath,
+ redocPath,
+}: {
+ app: INestApplication;
+ config: DocumentBuilder;
+ redocOptions: RedocOptions;
+ swaggerUIPath: string;
+ redocPath: string;
+}): Promise
1521ZB, Wormerveer
+31 6 37 65 08 49",
+ version: "1.0.0a",
+ contact: {
+ name: "Thom Werring",
+ email: "cv@t-werring.nl",
+ },
+ },
+ redocOptions
+ );
+
+ addIntro(config, redocOptions);
+ addSkills(config, 5, redocOptions);
+ addExperiences(config, 3, redocOptions);
+
+ await initDocs({
+ app,
+ config,
+ redocOptions,
+ swaggerUIPath: "/api",
+ redocPath: "/docs",
+ });
+};
diff --git a/src/experiences/experiences.service.ts b/src/experiences/experiences.service.ts
index b650982..d9add27 100644
--- a/src/experiences/experiences.service.ts
+++ b/src/experiences/experiences.service.ts
@@ -10,7 +10,7 @@ export class ExperiencesService {
constructor(private readonly skillsService: SkillsService) {
this.experiences = ExperienceDto.asDto(this.linkSkills(experiences)).sort((experienceA, experienceB) =>
- experienceA.startDate > experienceB.startDate ? 1 : -1
+ experienceA.startDate < experienceB.startDate ? 1 : -1
);
}
diff --git a/src/experiences/experiences.ts b/src/experiences/experiences.ts
index 39b88fb..abda432 100644
--- a/src/experiences/experiences.ts
+++ b/src/experiences/experiences.ts
@@ -26,15 +26,12 @@ During my time
city: "Amsterdam",
url: "http://blackorange.nl/",
jobTitle: "Junior Developer / System Administrator",
- startDate: new Date(2018, 9, 1),
+ startDate: new Date(2014, 9, 1),
endDate: new Date(2018, 8, 30),
- description: "",
+ description: "Blorp",
skills: [
{
- category: "AWS|Containerization|DevOps",
- },
- {
- name: "NodeJs|Git|Server",
+ name: "PHP|Git|Server",
},
],
},
@@ -42,9 +39,9 @@ During my time
name: "Werring Webdevelopment",
city: "Middenbeemster",
jobTitle: "ZZP",
- startDate: new Date(2018, 9, 1),
+ startDate: new Date(2012, 9, 1),
endDate: new Date(2018, 8, 30),
- description: "",
+ description: "Blorp2",
skills: [
{
name: "PHP|Webhosting",
@@ -56,7 +53,7 @@ During my time
city: "Utrecht",
url: "http://ingeniumcabobianci.nl/",
jobTitle: "Penningmeester",
- startDate: new Date(2018, 9, 1),
+ startDate: new Date(2011, 9, 1),
endDate: new Date(2018, 8, 30),
description: "",
skills: [
diff --git a/src/main.ts b/src/main.ts
index 60d815f..62b41ca 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,87 +1,11 @@
import { NestFactory } from "@nestjs/core";
import { AppModule } from "@/app.module";
-import { SwaggerModule, DocumentBuilder } from "@nestjs/swagger";
-import { RedocModule, RedocOptions } from "@juicyllama/nestjs-redoc";
+import openApi from "@/common/openApi";
async function bootstrap() {
const app = await NestFactory.create(AppModule);
- const config = new DocumentBuilder()
- .setTitle("Thom Werring - CV")
- .setDescription("Westerstraat 83
1521ZB, Wormerveer
+31 6 37 65 08 49")
- // .addApiKey({
- // type: "apiKey",
- // name: "Authorization",
- // bearerFormat: "bearer",
- // }, "Credentials")
- .setVersion("1.0.0a")
- .setContact("Thom Werring", null, "cv@t-werring.nl")
- .addTag(
- "Skills",
- `
- I'm also a strong communicator and collaborator, and I'm always looking for ways to improve my skills and knowledge. I'm excited about the future of cloud computing, and I'm eager to use my skills and experience to help others achieve their goals.
-
October 2018 - PRESENT
-
-
Junior Developer - Amsterdam
October 2014 - September 2018
-
ZZP - Middenbeemster
Januari 2012 - December 2016
-