Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/felipeorlando/go-crud-clean-architecture

A simple Go CRUD following Clean Archtecture pattern
https://github.com/felipeorlando/go-crud-clean-architecture

crud golang

Last synced: 21 days ago
JSON representation

A simple Go CRUD following Clean Archtecture pattern

Awesome Lists containing this project

README

        

# go-crud
This is a simple crud developed usign Go and Mongo, with some clean archtecture concepts.

You can CRUD users on the following endpoints:

```
GET /users
GET /users/{id}
POST /users
PUT /users/{id}
DELETE /users/{id}
```

To run the project you can use `docker-compose` or the `Makefile` (don't forget to change the configs on `config/config.go`). And it will run on port 3000.

## tests
To run the tests you must be runnig MongoDB locally (don't forget to change the configs on `config/config.go`) and just run the following command:

```sh
make test
```