79 lines
3.7 KiB
TypeScript
79 lines
3.7 KiB
TypeScript
import { NestFactory } from "@nestjs/core";
|
|
import { AppModule } from "@/app.module";
|
|
import { SwaggerModule, DocumentBuilder } from "@nestjs/swagger";
|
|
import { RedocModule, RedocOptions } from "@juicyllama/nestjs-redoc";
|
|
|
|
async function bootstrap() {
|
|
const app = await NestFactory.create(AppModule);
|
|
|
|
const config = new DocumentBuilder()
|
|
.setTitle("Thom Werring - CV")
|
|
.setDescription("Westerstraat 83<br/>1521ZB, Wormerveer<br/><a href='tel:+31637650849'>+31 6 37 65 08 49</a>")
|
|
.addApiKey({
|
|
type: "apiKey",
|
|
name: "Authorization",
|
|
bearerFormat: "bearer",
|
|
}, "Credentials")
|
|
.setVersion("1.0.0a")
|
|
.setContact("Thom Werring", null, "cv@t-werring.nl")
|
|
.addTag("Skills",
|
|
`<p>
|
|
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.<br/>
|
|
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.
|
|
</p>
|
|
`)
|
|
.addTag("Saysimple", `<p>Senior Developer - Haarlem<br/> October 2018 - PRESENT</p><p>
|
|
<ul>
|
|
<li><strong>NodeJs, TypeScript, Javascript</strong> Building scalable microservices</li>
|
|
<li><strong>Docker and Kubernetes</strong> Containerizing and deploying microservices to AWS EKS</li>
|
|
<li><strong>AWS</strong> Building, deploying, and monitoring cloud-based applications (EKS, Lambda, API Gateway, CloudWatch, etc.).</li>
|
|
<li><strong>DevOps</strong> Automating deployments and CI/CD pipelines.</li>
|
|
<li><strong>On call</strong> Handling outages and maintenance during nights & weekends</li>
|
|
</ul>
|
|
</p>`)
|
|
.addTag("Blackorange", `<p>Junior Developer - Amsterdam<br/> October 2014 - September 2018</p><p>
|
|
<ul>
|
|
<li><strong>PHP, Laravel</strong> Building websites and -applications in PHP Laravel</li>
|
|
<li><strong>Linux System Administrator</strong> Setup & maintenance of our application hosting</li>
|
|
</ul>
|
|
</p>`)
|
|
.addTag("Werring webdevelopment", `<p>ZZP - Middenbeemster<br/> Januari 2012 - December 2016</p><p>
|
|
<ul>
|
|
<li><strong>PHP, Wordpress</strong> Building websites in PHP & Wordpress</li>
|
|
<li><strong>Webhosting & Email</strong> managing webhosting for companies. </li>
|
|
</ul>
|
|
</p>`)
|
|
.build();
|
|
const document = SwaggerModule.createDocument(app, config, {
|
|
operationIdFactory: (controllerKey: string, methodKey: string) => (`${methodKey[0].toUpperCase()}${methodKey.substring(1)}`)
|
|
});
|
|
|
|
const redocOptions: RedocOptions = {
|
|
title: 'CV - Thom Werring',
|
|
logo: {
|
|
url: 'https://picsum.photos/256/128',
|
|
altText: 'Thom Werring'
|
|
},
|
|
sortPropsAlphabetically: true,
|
|
hideDownloadButton: false,
|
|
hideHostname: true,
|
|
|
|
tagGroups: [
|
|
{
|
|
name: 'Skills',
|
|
tags: ['Skills', ],
|
|
},
|
|
{
|
|
name: 'Experience',
|
|
tags: ['Saysimple', 'Blackorange', 'Werring webdevelopment'],
|
|
},
|
|
],
|
|
};
|
|
|
|
await RedocModule.setup('/docs', app, document, redocOptions);
|
|
SwaggerModule.setup("/api", app, document);
|
|
|
|
await app.listen(3000);
|
|
}
|
|
|
|
bootstrap();
|