GithubHelp home page GithubHelp logo

kingsukhoi / backend-engineering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flahmingo-investments/backend-engineering

0.0 1.0 0.0 10 KB

Homework assignment for potential hires.

License: MIT License

backend-engineering's Introduction

Home work

What is it?

In this exercise, you'll build two microservices that will contact over Google Cloud Pub/Sub. Below is a list of requirements and success criteria for your finished project.

Requirements

You'll build two gRPC services, auth-service and otp-service. auth-service will publish message SendOTP on verification topic, and the otp-service will subscribe to the topic and will listen on the event. After consuming the event otp-service will use Twilio to send the otp.

You'll build this service in golang and use GCP Cloud Pub/Sub for messaging.

Auth Service

Create an auth service. This service will handle authentication and user profile.

Create Account

  1. User should be able to create account using phone number.
  2. On successful account creation, publish a message on pubsub topic.
  3. User should be able to verify the account using the received otp.
  4. User should be able to login. By using otp.
  5. User should be able to logout.
  6. User should be able to get their profile.

What to implement

  1. SignupWithPhoneNumber
  2. VerifyPhoneNumber
  3. LoginWithPhoneNumber
  4. ValidatePhoneNumberLogin
  5. GetProfile

OTP Service

  1. Will consume SendOTP event.
  2. Send OTP using Twilio.

What to implement

  1. SendOTP

Resources

GCP Pub/Sub

https://cloud.google.com/pubsub/docs/overview

Twilio

https://www.twilio.com/docs/sms/api

Bonus Points

  1. Tests
  2. Comments

How to contribute

Contributing In order to test end to end the way you handle code commits, pull request and documentation. Follow this instructions.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add some AmazingFeature')
  5. Push to the branch (git push origin feature/AmazingFeature)
  6. Open a pull request

Additional Instructions

backend-engineering's People

Contributors

gio-moros avatar onlywicked avatar

Watchers

James Cloos 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.