Merchant CRUD API service is a RESTful API service that provides the following functionality:
- Signup
- Signin by email and password(JWT)
- List of all users
- Update a user
- 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
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
To test the service:
- run from root directory
Merchant CRUD API service is a RESTful API service that provides the following functionality:
- Signup
- Signin by email and password(JWT)
- List of all users
- Update a user
- 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
Docker Docker Compose GoLang GO Chi chi Postgres Beego ORM Mockery Swagger Git VSCode
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
To test the service:
run from root directory go test ./... -v