sunils07 / buggy-api

This is buggy sign up app designed as an interview assignment to test debugging skills

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

User Login Steps

Installation Setps

For further reference, please consider the following sections:

Pre-Requisites on Local Machine

  • Java 1.8
  • Maven
  • Mysql running on port 3306

Installation

  • Once Installation is done follow following steps:
    • Set the properties into the application.properties as:
      • spring.datasource.username=(set your Mysql UserName)
      • spring.datasource.password=(set your Mysql password)
    • Optionally if the database name test or the port 3306 conflict with the existing configuration you can always change them by hand in application.properties

Steps to Run

Documentation

Problem statement

  • The app when it comes up will have 2 users created in the system -

    • user1@gmail.com with password user1ABC
    • user2@gmail.com with password user2ABC
  • user1@gmail.com cant login but user2@gmail.com can

  • You can use the try it out feature on the swagger page with for the /login API to simulate this.Alternately you can use any choice of REST client for the same.

  • The output expected out of this is as follows

    • Debug why the login for user1@gmail.com fails.
    • Once the bug is discovered fix it and submit the assignment via git

About

This is buggy sign up app designed as an interview assignment to test debugging skills


Languages

Language:Java 100.0%