e-commerce-go-clean-arch

command module
v0.0.0-...-fa0bdc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 21 Imported by: 0

README

e-commerce-go-clean-arch

a backend of an e-commerce to study clean architecture in go lang.

mysql commit to up the database:

docker run --detach --name=gocleanarch-db --env="MYSQL_ROOT_PASSWORD=rootpass" --env="MYSQL_PASSWORD=password" --env="MYSQL_USER=user" --env="MYSQL_DATABASE=gocleanarch" --publish 3306:3306 --volume=$(pwd)/init.sql:/docker-entrypoint-initdb.d/init.sql mysql:5.7

routes of the aplication

/signup

{
	"login": "[email protected]",
	"password": "Password123$",
	"email": "[email protected]",
	"firstName": "test",
	"lastName": "test",
	"phoneNumber": "(11) 98888-8888",
	"address": {
		"city": "city",
		"state": "state",
		"neighborhood": "neighborhood",
		"street": "street",
		"number": "432",
		"zipcode": "zipcode"
	}
}

/login

{
	"login": "[email protected]",
	"password": "Password123$"
}

/forgotpass/code

{
	"login": "[email protected]"
}

/forgotpass/reset

{
	"login": "[email protected]",
	"code": "n90VAn",
	"newPassword": "Password1234$"
}

/products/:uuid Header (Authorization = Token)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
auth
code
message
product
token
user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL