Model-View-Controller Using Ngamux
- Run MongoDB first, you can use this command:
sudo mongod --dbpath /var/db/mongo
- Configure the connection URL in config.ConnectDatabase function.
- Run project use this command:
go run main.go
Host: http://localhost:8080
- Method: GET
- URL: /users
Body:
{
"users": [
{
"email": "my@email.com",
"password": "123123123"
}
]
}
- Method: GET
- URL: /users
- Query: ?email=my@email.com&password=123123123
Body:
{
"user": {
"email": "my@email.com",
"password": "123123123"
}
}