Giter Club home page Giter Club logo

ms-api's Introduction

MS API

Prerequisites

# Enable GO111MODULE
$ export GO111MODULE=on

# Initialize app
$ make init

# Install ffmpeg
$ brew install ffmpeg

# Run this command if there is differeces betreen mod.mod and go.sum
$ go mod tidy

Set config file at config/config.ini.

How to develop

# Update docs
$ swag init

# Run on local
$ make run

# Build on docker
$ make docker-build

# Run on docker
$ make docker-run

# Run external apps
$ make external-up

# End external apps
$ make external-down

# Help
$ make help

API Docs

http://localhost:8080/docs/api/v1/index.html#/

Deploy

Deploy to minikube

# Start minikube
$ minikube start

# Use local image
$ eval $(minikube docker-env)

# Build docker image
$ docker build -t ms-api .

# Deploy
$ kubectl apply -f deploy/configmap.yaml
$ kubectl apply -f deploy/deployment.yaml
$ kubectl apply -f deploy/service.yaml

# Get all status
$ kubectl get all

# Access to deployed app (Click the displayed url)
$ minikube service ms-api --url

minikube common commands

$ minikube start
$ minikube status
$ minikube dashboard
$ minikube tunnel
$ minikube stop

ms-api's People

Contributors

kaitohattori avatar

Watchers

Jun Sakai 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.