Skip to content

Commit

Permalink
feat(projects): fakeapi (#52)
Browse files Browse the repository at this point in the history
* feat: adds fake api project

* feat: adds translated project info

* fix: replaces java for go

- I have now practical experience in go

* feat: new app version

* fix: build local environment container

* docs: updates instructions to run the app locally

* fix: docs about running the app
  • Loading branch information
vncsmyrnk authored Jan 1, 2025
1 parent 6f8698c commit 1169923
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ All my skills and accomplishments showcased in one place.
This project uses [just](https://github.com/casey/just) running development tasks.

```bash
just dev-run # Runs on localhost:3000
just build-dev-env run-dev-env # Builds and runs the dev container
docker exec -it portfolio-dev bash # Gets inside the container
just dev-run # Runs the app (must be run inside the container)
```

The local environment should be available at http://localhost:3000.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "portfolio",
"homepage": "https://vncsmyrnk.github.io/portfolio/",
"private": true,
"version": "0.0.0",
"version": "0.0.1",
"type": "module",
"scripts": {
"dev-bundle": "vite --host --port 3000",
Expand Down
6 changes: 5 additions & 1 deletion app/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "I build scalable, secure, and seamless backend infrastructures"
},
"description": {
"text": "I am <underline>Vinicius Mayrink</underline> and I am a backend developer specialized in crafting robust APIs using an arsenal of tools including <highlight>Python</highlight>, <highlight>Java</highlight>, and <highlight>Node.js</highlight>. With a deep understanding of backend principles and concepts, I am proficient in implementing SOLID principles, RESTful architecture, and clean code practices to engineer <strong>scalable</strong> and <strong>efficient</strong> solutions.",
"text": "I am <underline>Vinicius Mayrink</underline> and I am a backend developer specialized in crafting robust APIs using an arsenal of tools including <highlight>Python</highlight>, <highlight>Go</highlight>, and <highlight>Node.js</highlight>. With a deep understanding of backend principles and concepts, I am proficient in implementing SOLID principles, RESTful architecture, and clean code practices to engineer <strong>scalable</strong> and <strong>efficient</strong> solutions.",
"button": "Check it out"
},
"certificates": {
Expand All @@ -31,6 +31,10 @@
"projects": {
"title": "Projects",
"button-to-github": "See on GitHub",
"fakeapi": {
"title": "Fake API",
"description": "Fake API allows you to quickly set up and run a RESTful API server with customizable endpoints and responses. This makes it an ideal tool for software testing without relying on external services"
},
"restaurant": {
"title": "Restaurant Integration API",
"description": "This API aims to centralize information related to restaurant orders in just one place, providing webhooks so that other systems can make decisions based on order activity"
Expand Down
6 changes: 5 additions & 1 deletion app/public/locales/pt-BR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"description": "Eu construo infraestruturas de backend escaláveis, seguras e integradas"
},
"description": {
"text": "Eu sou <underline>Vinicius Mayrink</underline> e sou um desenvolvedor de backend especializado em criar APIs robustas usando um arsenal de ferramentas, incluindo <highlight>Python</highlight>, <highlight>Java</highlight> e <highlight>Node.js</highlight>. Com um profundo entendimento dos princípios e conceitos de backend, sou proficiente na implementação dos princípios SOLID, arquitetura RESTful e práticas de código limpo para projetar soluções <strong>escaláveis</strong> e <strong>eficientes</strong>",
"text": "Eu sou <underline>Vinicius Mayrink</underline> e sou um desenvolvedor de backend especializado em criar APIs robustas usando um arsenal de ferramentas, incluindo <highlight>Python</highlight>, <highlight>Go</highlight> e <highlight>Node.js</highlight>. Com um profundo entendimento dos princípios e conceitos de backend, sou proficiente na implementação dos princípios SOLID, arquitetura RESTful e práticas de código limpo para projetar soluções <strong>escaláveis</strong> e <strong>eficientes</strong>",
"button": "Veja mais"
},
"certificates": {
Expand All @@ -31,6 +31,10 @@
"projects": {
"title": "Projetos",
"button-to-github": "Veja no GitHub",
"fakeapi": {
"title": "Fake API",
"description": "Fake API permite configurar e executar rapidamente um servidor RESTful com endpoints e respostas personalizáveis. Isso a torna uma ferramenta ideal para testes de software sem depender de serviços externos"
},
"restaurant": {
"title": "Integração em restaurantes API",
"description": "Esta API tem como objetivo centralizar informações relacionadas a pedidos de restaurantes em um único lugar, fornecendo webhooks para que outros sistemas possam tomar decisões com base na atividade de pedidos"
Expand Down
2 changes: 1 addition & 1 deletion app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function App() {
"rest",
"python",
"integrations",
"java",
"go",
"backend",
"ai/ml",
"ci/cd",
Expand Down
27 changes: 27 additions & 0 deletions app/src/data/projects.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
export const projects = [
{
name: "projects.fakeapi.title",
description: "projects.fakeapi.description",
language: "go",
codeString: `[...]
delayDuration := stdtime.Duration(activeEndpoint.OutputDelaySeconds) * stdtime.Second
s.TimeProvider.Sleep(delayDuration)
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(activeEndpoint.OutputStatus)
if activeEndpoint.OutputContent == nil {
return
}
[...]`,
linkUrl: "https://github.com/vncsmyrnk/fakeapi",
linkDescription: "projects.button-to-github",
tags: [
"cli",
"mock",
"go",
"tests",
"codecov",
"ci/cd",
"rest api",
],
},
{
name: "projects.restaurant.title",
description: "projects.restaurant.description",
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default:
path := "{{source_directory()}}/app"

build-dev-env:
docker build -t portfolio-dev .
docker build -t portfolio-dev .dev

run-dev-env:
docker run --rm -it \
Expand Down

0 comments on commit 1169923

Please sign in to comment.