GithubHelp home page GithubHelp logo

chandrikadeb7 / go-couchbase-microservice Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 39.21 MB

Go Microservice developed using Go Echo API Server OpenAPI with Couchbase backend

Dockerfile 0.85% Go 99.15%
golang go openapi couchbase golang-application golang-api golang-library couchbase-docker-container docker dockerfile microservice microservices-application

go-couchbase-microservice's Introduction

BillingCyleSpecification - Microservice using Go Echo API Server for openapi

This API manages the BillingCycle resource, which is the representation (instantiation) of the cycle specification for a specific billing run. The API includes services for storing and retrieving the BillingCycle resource.

Running the server

To run the server, follow these simple steps:

Pre-requisites

  1. Docker installed on your machine.
  2. Disconnect to VPN .

Creating couchbase container

cd couchbase-custom
docker-compose up

Once the couchbase container is up and running access it at http://localhost:8091/ .

  • Create a bucket named test-bucket .
  • Create an index on the test-bucket.
CREATE PRIMARY INDEX idx_default_primary ON `test-bucket` USING GSI;

Creating billing-cycle-ms-app container

Onto the application home i.e. walk-the-tech-go folder.

docker-compose up
If you already have couchbase running on your local
  • You can add couchbase username and password as environment variables on your windows.Refer container.go file.
  • Change the port on main.go .
  • Refer .env file for all environment variables.
  • You can the application on non-docker env using the below commands
go build -o billing-cycle-ms-app
go run .
Known Issue

Couchbase container may take sometime to ready. You may have to restart the application container for establishing the connection with couchbase.

Disclaimer

This server was generated by the [openapi-generator] (https://openapi-generator.tech) project. By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

README

  • API version: 1.0
  • Build date: 2022-01-06T10:29:30.636+05:30[Asia/Calcutta]

go-couchbase-microservice's People

Contributors

chandrikadeb7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.