Coder Social home page Coder Social logo

srv-2210's Introduction

Practical Go Services

ArdanLabs โˆด 2022

Miki Tebeka [email protected], @tebeka, mikitebeka, blog

Shameless Plugs


Day 4

Agenda

  • Security best practices
  • OWASP top 10
  • The security mindset

Terminal Log

Links

Data & Other

  • curl -d@./_class/start.json http://localhost:8080/rides
  • curl -uBond:007 -d@./_class/start.json http://localhost:8080/rides

Day 3

Agenda

  • Testing overview
  • Testing handlers
  • Running services in testing
  • Mocking
  • Performance optimization

Terminal Log

Links

Data & Other

  • go get github.com/rakyll/hey@latest

Day 2

Agenda

  • Databases
  • Working with database/sql
  • Working with redis
  • Logging
  • Monitoring

Terminal Log

Links

Data & Other

  • docker exec -it <id> psql -U postgres
    • or pgcli -p 5432 -U postgres -h localhost
  • docker exec -it <id> redis-cli

Day 1

Agenda

  • REST APIs
  • Handlers
  • JSON
  • Middleware

Code

Clone the repo:

$ git clone https://github.com/353solutions/srv-2210.git unter

Terminal Log

Links

Design

[library]
layers:
    - business
    - foundations

front ends: [web] [cli] [gui]

Rules of thumb: imports go downward in the layers

Data Types: one per layer API Business Database

Data & Other

  • curl -d'{"driver": "gomez", "kind": "private"}' http://localhost:8080/rides
  • curl -d'{"distance": 3.14}' http://localhost:8080/rides/<id>/end

srv-2210's People

Contributors

tebeka avatar

Watchers

 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.