This project exposes Apis(written in Golang) to manage catalog of the foody system.
To know about the architecture of full product, click here.
- Golang
- Mongodb Server
- Jaeger(Optional)
Clone the repository at $GOPATH/src/github.com/dhyaniarun1993/.
$ git clone https://github.com/dhyaniarun1993/foody-catalog-service.git
$ cd foody-catalog-service
Install dependencies using below command
$ dep ensure
All the configuration that the service needs are passed through Environment variables. For development, environment config can be found at cmd/catalog-server/.env file. After updating the variables in env file, export the environment variables using following command
$ source cmd/catalog-server/.env
Use the command below to run the application
$ go run cmd/catalog-server/main.go
Coming Soon
Note: This service depends on Nginx and Oauth service to validate the Authorization JWT token and pass the claims(user id, user role, client id) in the header to downstream service. While running in standalone mode, just pass user id, user role and client id in Headers "X-User-Id", "X-User-Role", "X-Client-Id" respectively.
- Restaurant Create, Delete Operations(Only merchants are allowed to perform this operations)
- Get Restaurant Near Me(Only customers are allowed to perform this operations)
- Get Menu of a Restaurant(Both customer and merchant are allowed to perform this operation)
- Add, Get and Remove Category to restaurant(Only merchants are allowed to perform this operations)
- Add, Get and Delete Product with variant to restaurant and category(Only merchants are allowed to perform this operations)
- Add, Get and Remove variant from restaurant and category(Only merchants are allowed to perform this operations)
Refer to the Api documentation below to know more.
Note: Api schema might change.
Api documentation can be found at link
Created and maintained by Arun Dhyani