Golang sample POC
=============
BUDGET: max 1000 INR
=================
Micro Service-1
-----------------------
1) Login API
- Login using MobileNumber and Password
2) Registration API
- Enter detail for Mobile Number, Name, Email ID, Password
- Validation check for Mobile Number(10 digit)
- Validation for Email: Min Password length=6, at least 1 digit, at least 1 alphabet.
- Validation for Email ID
3) Get Profile detail.
- After login if we execute GET API, it will give Name and Mobile Number of user.
Micro Service-2
------------------------
1) Update Password
- If we give UserID, Current Password and New Password. It check that User ID and Current Password match then update new password.
2) Get Total Registered User Count
- Get Total number of registered user.
Authentication:
----------------------
1) Use Secure Login Authentication Mechanism (JWT, etc which is best used in market)
2) Other API also should be secure. Otherwise anyone get GET/POST API url then will call from Postman. So some security mechanism require.
DATABASE:
-----------------
1) Use PostgreSQL
2) Create sample DB Table
3) Create Function or Procedure in stand of Query. These function/Procedure will be call from code.
CODE STRUCTURE
------------------------------
1) Create Proper Code Folder Structure. Consider that in future if we add new functionality / API then how to add, how to create different folder structure for functionality wide.
2) If multiple version of API came how to manage, example V1, V2 …etc of Get Profile API came. So we have to manage active both API with proper code and folder structure.
3) If require Search on internet and create proper folder structure and File structure.
4) Add Login Authentication mechanism (JWT…etc which is best secure)
5) Create secure authenticated API.
6) Create different Configuration / Common utility files where required.
7) Log file should create, so we can check the flow of code when it is crashed.
8) Proper Code commenting of each file/ API.
-------
Document file is also attached.