Teste prático para vaga de back-end Python / Go na Stone.

Overview

Stone_GitHub_API_Golang

Teste prático para vaga de back-end Python / Go na Stone.

Nota 1: Utilizar a branch Release
Nota 2: É necessário adicionar o TOKEN de acesso do GITHUB no .ENV da Aplicação.

1 - Como subir a api?

Após clonar o repositório, a estrutura de pastas deve ficar em algo como:

$GOPATH/src/Stone_GitHub_API_Golang

Feito isso, basta entrar na pasta raiz do projeto e executar o comando abaixo para criar a imagem da aplicação:

docker build . -t stone_backend_rennasccenth

Com nossa devida imagem criada, podemos executá-la através do comando:

docker run -d --name=rennasccenth_teste -p 8080:8080 stone_backend_rennasccenth:latest

Pronto, agora temos a aplicação rodando na porta 8080 local, então certifique-se de que essa porta esteja livre!

2 - E quanto aos testes??

Para executar os testes, podemos executar o seguinte comando, ainda na pasta raiz do projeto e com a aplicação rodando:

godotenv go test ./...

3 - Facilitando os testes...

Para facilitar os testes, deixarei a collection do postman com as requisições que foram utilizadas para validar as features juntamente com o environment usado, estão na pasta:

$GOPATH/src/Stone_GitHub_API_Golang/postman

Aos reviewers!

Essa foi minha primeira experiência com Golang, conhecia a linguagem somente por cima e sabia que lembrava um pouco de C, então aceitei o desafio/sugestão da Lídia de fazer o teste na linguagem que eu menos tinha domínio (nesse caso era 0 mesmo uheuhuaheu). Dito isso, caso tenham algo a acrescentar ou apontar erros cometidos, sintam-se totalmente a vontade!

O que foi feito?

  • Dockerização
  • Documentação
  • Testes

Tier 1

  • Retornar Repositório com mais Stars.
  • Retornar a Issue aberta que possui mais comentários.
  • Retornar os Pull Requests abertos que ainda não foram interagidos.

Tier 2

  • Implementação de uma camada de cache, para as rotas do tier 1.
You might also like...
Repository belajar docker ALTA Immerseive Back-End Batch 4

Belajar Docker Repository belajar docker ALTA Immerseive Back-End Batch 4 Untuk materi ini teman-teman bisa download docker sesuai dengan OS masing-ma

Project E-Commerce Alta Store Program Immersive Back End Batch 4
Project E-Commerce Alta Store Program Immersive Back End Batch 4

Project E-Commerce Project E-Commerce Alta Store Program Immersive Back End Batch 4 Explore the docs » Daftar Isi About The Project Built With ERD Con

A go program that relies on back-end ffmpeg to process video-related content

Video Compress A go program that relies on back-end ffmpeg to process video-related content Installation v-go You can download the corresponding v-go

Discord-finder - The back-end for retrieving information about people on discord
Discord-finder - The back-end for retrieving information about people on discord

About This is the backend application for Discord Finder, it allows you to retrive information about people on discord just like the discord lookup we

Back end of e-books and papers collection website. Only for internal use.

Back end of e-books and papers collection website. Only for internal use.

Expressive end-to-end HTTP API testing made easy in Go

baloo Expressive and versatile end-to-end HTTP API testing made easy in Go (golang), built on top of gentleman HTTP client toolkit. Take a look to the

End to end functional test and automation framework
End to end functional test and automation framework

Declarative end to end functional testing (endly) This library is compatible with Go 1.12+ Please refer to CHANGELOG.md if you encounter breaking chan

End-to-end HTTP and REST API testing for Go.

httpexpect Concise, declarative, and easy to use end-to-end HTTP and REST API testing for Go (golang). Basically, httpexpect is a set of chainable bui

🚀🌏 Orbital is a simple end-to-end testing framework for Go

Orbital is a test framework which enables a developer to write end to end tests just like one would writing unit tests. We do this by effectively copying the testing.T API and registering tests to be run periodically on a configured schedule.

An always-on framework that performs end-to-end functional network testing for reachability, latency, and packet loss

Arachne Arachne is a packet loss detection system and an underperforming path detection system. It provides fast and easy active end-to-end functional

Powerful workflow engine and end-to-end pipeline solutions implemented with native Kubernetes resources. https://cyclone.dev
Powerful workflow engine and end-to-end pipeline solutions implemented with native Kubernetes resources. https://cyclone.dev

Cyclone Cyclone is a powerful workflow engine and end-to-end pipeline solution implemented with native Kubernetes resources, with no extra dependencie

End-to-end encrypted file transfer for Android. An Android Magic Wormhole client.
End-to-end encrypted file transfer for Android. An Android Magic Wormhole client.

wormhole-william-mobile This is a Magic Wormhole client for Android. (Perhaps someday this will also support iOS). Some current limitations: Receiving

🔐 Share end-to-end encrypted secrets with others via a one-time URL
🔐 Share end-to-end encrypted secrets with others via a one-time URL

If you use this repo, star it ✨ 🔐 Share end-to-end encrypted secrets with others via a one-time URL Use to securely share API Keys, Signing secrets,

🔐 Share end-to-end encrypted secrets with others via a one-time URL
🔐 Share end-to-end encrypted secrets with others via a one-time URL

If you use this repo, star it ✨ 🔐 Share end-to-end encrypted secrets with others via a one-time URL Use to securely share API Keys, Signing secrets,

End-to-end encrypted email for the mesh networking age

Yggmail It's email, but not as you know it. Introduction Yggmail is a single-binary all-in-one mail transfer agent which sends and receives email nati

A simple and expressive HTTP server mocking library for end-to-end tests in Go.

mockhttp A simple and expressive HTTP server mocking library for end-to-end tests in Go. Installation go get -d github.com/americanas-go/mockhttp Exa

The open source, end-to-end computer vision platform. Label, build, train, tune, deploy and automate in a unified platform that runs on any cloud and on-premises.
The open source, end-to-end computer vision platform. Label, build, train, tune, deploy and automate in a unified platform that runs on any cloud and on-premises.

End-to-end computer vision platform Label, build, train, tune, deploy and automate in a unified platform that runs on any cloud and on-premises. onepa

K6 extension that adds support for browser automation and end-to-end web testing using playwright-go
K6 extension that adds support for browser automation and end-to-end web testing using playwright-go

k6 extension that adds support for browser automation and end-to-end web testing using playwright-go

An end-to-end encrypted secret messaging service.

Nimie An End-to-end encrypted Anonymous Messaging Service. In a nutshell This service basically empowers you to have short anonymous conversations wit

Owner
Felipe Nunes
Graduando em Ciência da Computação pela Universidade Federal do Mato Grosso.
Felipe Nunes
Year-end-review - enables those want to look back on PRs at the end of year to review PRs and the comments as single Markdown file.

year-end-review year-end-review enables those want to look back on PRs at the end of year to review PRs and the comments as single Markdown file. HOW

Satoru Kitaguchi 0 Dec 31, 2021
The VM for running Back

Backvm The VM for running Back Back is a Concurrent Forth implementation, have fun Building the only dependency for backvm is the Go compiler Backvm d

null 1 Dec 11, 2021
ARM project repository for back-/frontend dev

Ahlam Rahma Mohamed (ARM) Project This repository will include the code base for the ARM project user interface and other helping components. Author M

null 0 Dec 17, 2021
Bank-End Master Class [ Golang, Postges, Docker ]

Simple Bank This repository contains the codes of the Backend master class course by TECH SCHOOL. In this backend master class, we’re going to learn e

anousone worlakoumman 0 Dec 14, 2021
📦 Go version of the Python pewn library.

Gownload Go version of pewn. Allows you to Download file(s) easily.

Penguen 5 Dec 11, 2021
Desafio 1 da trilha de estágio em back end go da Stone

desafio_estagio_1 Desafio 1 da trilha de estágio em back end go da Stone. Neste desafio as entradas são uma lista de items e uma lista de e-mails. Cri

Felipe Seo 3 Jan 11, 2022
repo de teste para executar á pipeline do rancher

pipeline-example-go This is a sample golang project to demonstrate the integration with rancher pipeline. Building go build -o ./bin/hello-server Runn

Kaique Yamamoto | RedBlock Solution 0 Dec 19, 2021
Year-end-review - enables those want to look back on PRs at the end of year to review PRs and the comments as single Markdown file.

year-end-review year-end-review enables those want to look back on PRs at the end of year to review PRs and the comments as single Markdown file. HOW

Satoru Kitaguchi 0 Dec 31, 2021
Golang && Back-end Stack , Continually updated

Stack Here Golang OS Net Note Tool Delve Authentication Paper Paper ?? Link GO官方文档 GO Official Doc GO官方博客 GO Official Blog GO官方仓库

G 210 Nov 8, 2022
Implementing back-end services for blog application

Go Blog API Real-world examples implementing back-end services for blog application using Go programming language to build RESTful API, all routes and

Achmad Chun-Chun Winata Adi 49 Oct 28, 2022