Skip to content

ngamux/ngamux-mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngamux-mvc

Model-View-Controller Using Ngamux

Run Project

  1. Run MongoDB first, you can use this command:
sudo mongod --dbpath /var/db/mongo
  1. Configure the connection URL in config.ConnectDatabase function.
  2. Run project use this command:
go run main.go

API Docs

Host: http://localhost:8080

Get All Users

Request

  • Method: GET
  • URL: /users

Response

Body:

{
  "users": [
    {
      "email": "my@email.com",
      "password": "123123123"
    }
  ]
}

Create User

Request

  • Method: GET
  • URL: /users
  • Query: ?email=my@email.com&password=123123123

Response

Body:

{
  "user": {
    "email": "my@email.com",
    "password": "123123123"
  }
}

About

Model-View-Controller Using Ngamux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages