Skip to content

samims/merchant-golang-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merchant CRUD API service

Merchant CRUD API service is a RESTful API service that provides the following functionality:

Authentication

- Signup
- Signin by email and password(JWT)

User APIs

- List of all users
- Update a user

Merchant APIs

- List of all merchants
- Create a new merchant
- Read a merchant
- Update a merchant if associated with the user
- Delete a merchant if associated with the user
- Add team member to a merchant if associated with the user
- Remove team member from a merchant if associated with the user

Run the service

There is a Dockerfile in the docker/ directory of the project. To run the service:

  • go to the project directory /docker
  • rename .env.example to .env
  • run docker-compose up
  • project will be up on port 3001

Test the service

To test the service:

  • run from root directory

Merchant CRUD API service

Merchant CRUD API service is a RESTful API service that provides the following functionality:

Authentication

- Signup
- Signin by email and password(JWT)

User APIs

- List of all users
- Update a user

Merchant APIs

- List of all merchants
- Create a new merchant
- Read a merchant
- Update a merchant if associated with the user
- Delete a merchant if associated with the user
- Add team member to a merchant if associated with the user
- Remove team member from a merchant if associated with the user

Technologies & Tools Used

Docker Docker Compose GoLang GO Chi chi Postgres Beego ORM Mockery Swagger Git VSCode

Run the service

There is a Dockerfile in the docker/ directory of the project. To run the service:

  • go to the project directory /docker
  • rename .env.example to .env
  • run docker-compose up
  • project will be up on port 3001

Test the service

To test the service: run from root directory go test ./... -v

About

Golang rest api using dependency injection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages