Categorygithub.com/BryanSouza91/user-crud
modulepackage
0.0.0-20210826212806-a7cb0a97352c
Repository: https://github.com/bryansouza91/user-crud.git
Documentation: pkg.go.dev

# README

user-crud

Work in progress

Simple CRUD implementation utilizing the power of Go and performance of MongoDB to effectively maintain a database.

Instructions

Install Go Programming language latest version

Download and install here

N|Solid

External Packages

Configuration .json

Besure to recreate your own conf.json using the example provided

To get this repository and run

$ git clone https://github.com/BryanSouza91/user-crud.git
$ go run app.go

# Functions

AllUsersEndpoint will GET list of users.
CreateUserEndpoint will POST a new user.
DeleteUserEndpoint will DELETE an existing user.
FindUserEndpoint will GET a users by its ID.
UpdateUserEndpoint will PUT update an existing user.

# Constants

COLLECTION declaration.

# Structs

DAO declaration.
User type Represents a user, we uses bson keyword to tell the mgo driver how to name the properties in mongodb document.