Đã Đóng

Go-Mongo Project: 1 - Build a Microservice in Go for an application

Application is about people solving problems and getting rated. You have to implement API operations as defined in the code provided. Please add the lines of code only in the designated code block as indicated using comments in each of the files. Any code added outside the designated lines may not work as it is intended to, for us.

DATA MODEL :-

All data to be stored in Mongo collections :-

- “users” - models/[login to view URL]

- “problems” - models/[login to view URL]

CODE STRUCTURE:

All relevant models are in models/

All operations are in operations/

Ignore hubs/ and other folders. Ignore all [login to view URL] files.

**Bonus if you are able to figure out and write proper test cases. But it’s not mandatory **

OPERATIONS TO IMPLEMENT:

1. Register ([login to view URL]):

This operation will take input username and password, creates a new user, and returns a logged in user. It will also generate a JWT token with user_id and user_name, which will be saved in the header with key “jwt”. The sugar for encryption is passed as argument.

2. Login ([login to view URL]):

This operation will take input username and password, checks credentials, and logs in the user by setting the JWT token with user_id and user_name. Similar to register operation.

3. Me ([login to view URL]):

This operation will return current logged in User. Logged-in user_id is already being fetched from the token. Refer to validation.go.

4. Update Profile ([login to view URL]):

Update user with following fields. All are optional, if not supplied or empty don’t update it. (Name/Email/Phone/password). On Success return “AukaatResponse” with appropriate status.

5. Add Problem ([login to view URL]):

Add the given problem to DB. Return “AukaatResponse” appropriately.

6. List Problems ([login to view URL]):

List Problems returns all the problems in the DB

7. Edit Problem ([login to view URL]):

Edit the given problem(ID). Return “AukaatResponse” appropriately.

8. Get Problem ([login to view URL])

Return the problem as specified by the ID.

Disclaimer:

1. Depending on tasks, you might only get paid on meeting complete requirements. Please verify that you understand requirements clearly before starting out.

2. Our team of senior developers will review the code, and this may take up to a week. The money will be released once the code has been approved by them. We may suggest changes to the code, and/or review the contract in extreme cases.

3. Prefer to work with individual freelancers.

Kĩ năng: Golang, MongoDB, HTTP

Xem nhiều hơn: microservices with golang and docker, golang mongodb example, golang mongodb query builder, golang & mongodb, mgo vs mongodb go driver, golang microservices example github, microservices with mongodb example, golang mongodb docker, access project application run application exe, build hrms web based application, build tcp client server application, build sip client web application, build java script poker application, build rest api j2ee application, build google map web application, estimate build simple crud web application, build stand along access application, build internet information iphone application, goal project creation villa booking web site application, tfs build integration testing dcom application

Về Bên Thuê:
( 1 Nhận xét ) Mumbai, India

ID dự án: #27120757

3 freelancer chào giá trung bình₹10204 cho công việc này

sayansaha986

Hi, I can help you to finish the go API with MongoDB. Let me know if you are interested, then we can discuss.

₹12000 INR trong 2 ngày
(1 Nhận xét)
0.0
pruse2895

Hi, I have a two years of experience in golang and MongoDB and I started my carrier with these stack. Check my github account to know my works : [login to view URL] previous project : - Thêm

₹11111 INR trong 4 ngày
(0 Nhận xét)
0.0
fredfigueroa

Hello I have experience in development with Go Lang, I also programmed with Go in this job [login to view URL], I can do a remote demo by sharing my screen In general I have mor Thêm

₹7500 INR trong 7 ngày
(0 Nhận xét)
0.0