https://github.com/ardanlabs/service
URL: http://0.0.0.0:3000/v1/user/{id}
URL: http://0.0.0.0:3000/v1/user?email={email}
Added todo notes for the same
- Adding Tracing
- Adding Authentication to POST request
- More Elaborated Error Handling
- Handle Debug server more properly
- gracefully shutdown the server on error
- Test cases
- Proper seperation of business logic
- profiling setup
docker build -t loomx:0.0.1 .
docker run -p 3000:3000 loomx:0.0.1
URL: http://0.0.0.0:3000/v1/user
Request Body: { "username": "htgyl", "email": "hitesh@udacity.com" }
Content-Type: application/json
- Internal folder mostly contains platform related stuff
- handlers contains all the routings
- main contains only configuration setup