GithubHelp home page GithubHelp logo

go-agenda's Introduction

X-Team Go Bootcamp

https://www.linkedin.com/in/juliano-silva-de-souza/ https://github.com/julianosouza/go-crash-course

Final Challenge

Build an HTTP API that's responsible for handling a phone agenda (i know it's obvious, but the nuances on building the project are what really matters).

The http server should contain:

  • An endpoint for pushing new contacts
  • An endpoint for editing contact information
  • An endpoint for deleting a contact
  • An endpoint for searching a contact by it's id
  • An endpoint for searching contacts by a part of their name
  • An endpoint that lists all contacts
  • The http service should be configurable through flags on startup (timeouts and port to use)
  • Log messages should be written for each endpoint hit, with the response status code and the time it took to fulfill the request
  • If an error occurs, a log message should be written with the response status code and a helpful error message, to help an engineer troubleshoot the issue Service and host metrics should be collected. I suggest using Prometheus (https://prometheus.io/docs/guides/go-application/)
  • The application should have a reasonable test coverage, preferably above 70%
  • The application should have end-to-end tests (this is a good way to try out the http client)
  • The application should contain a buildable Dockerfile (https://levelup.gitconnected.com/complete-guide-to-create-docker-container-for-your-golang-application-80f3fb59a15e) -- care on this, as using plainly the scratch image might hinder you from making https requests. Not that this will impact our example, but something to always take care into the future
  • It would be nice for the application to have some type of storage to persist the data. I'll leave this open, feel free to pick any type of storage you want ๐Ÿ™‚

go-agenda's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.