Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/yapo-chile/legacy-mobile-apps-premium-carousel-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/yapo-chile/legacy-mobile-apps-premium-carousel-api

  • v0.0.0-20230130141556-18c1f8767bc7
  • Source
  • Go
  • Socket score

Version published
Created
Source

Status of the build Testing Coverage Style/Linting issues Badger Badger Badger

premium-carousel-api needs a description here.

  • Create the dir: ~/go/src/gitlab.com/yapo_team

  • Set the go path: export GOPATH=~/go or add the line on your file .bash_rc

  • Clone this repo:

    $ cd ~/go/src/gitlab.com/yapo_team
    $ git clone git@github.mpi-internal.com:Yapo/premium-carousel-api.git
    
  • On the top dir execute the make instruction to clean and start:

    $ cd premium-carousel-api
    $ make start
    
  • To get a list of available commands:

    $ make help
    Targets:
      test                 Run tests and generate quality reports
      cover                Run tests and output coverage reports
      coverhtml            Run tests and open report on default web browser
      checkstyle           Run gometalinter and output report as text
      setup                Install golang system level dependencies
      build                Compile the code
      run                  Execute the service
      start                Compile and start the service
      fix-format           Run gofmt to reindent source
      info                 Display basic service info
      docker-build         Create docker image based on docker/dockerfile
      docker-publish       Push docker image to containers.mpi-internal.com
      docker-attach        Attach to this service's currently running docker container output stream
      docker-compose-up    Start all required docker containers for this service
      docker-compose-down  Stop all running docker containers for this service
      help                 This help message
    
  • If you change the code:

    $ make start
    
  • How to run the tests

    $ make [cover|coverhtml]
    
  • How to check format

    $ make checkstyle
    

Endpoints

GET /healthcheck

Reports whether the service is up and ready to respond.

When implementing a new service, you MUST keep this endpoint and update it so it replies according to your service status!

Request

No request parameters

Response
  • Status: Ok message, representing service health
200 OK
{
	"Status": "OK"
}

Contact

dev@schibsted.cl

Kubernetes

Kubernetes and Helm have to be installed in your machine. If you haven't done it yet, you need to create a secret to reach Artifactory. kubectl create secret docker-registry containers-mpi-internal-com -n <namespace> --docker-server=containers.mpi-internal.com --docker-username=<okta_username> --docker-password=<artifactory_api_key> --docker-email=<your_email>

Helm Charts

  1. You need to fill out the ENV variables in the k8s/premium-carousel-api/templates/configmap.yaml file.
  2. You should fill out the tag, and host under hosts to your namespace.
  3. Add this host name to your /etc/hosts file with the correct IP address (127.21.5.11)
  4. You run helm install -n <name_of_your_release> k8s/premium-carousel-api
  5. Check your pod is running with kubectl get pods
  6. If you want to check your request log kubectl logs <name_of_your_pod>

FAQs

Package last updated on 30 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc