GithubHelp home page GithubHelp logo

xsnakezonx / microservice-soundtrackdetaction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 17.79 MB

A university assignment about producing a series of microservices to provide song track detection feature via using the audd.io API

License: GNU General Public License v3.0

Go 89.76% Shell 10.24%
api audd golang microservices restful-api sound-detection

microservice-soundtrackdetaction's Introduction

MicroService-SoundTrackDetaction

About

A university assignment about producing a series of microservices to provide song track detection feature via using the audd.io API For more infomation, please find the assignment pdf in the repository.

Installation

The Go Version

The latest Go version on Linux OS enabled machine. I do not recommend running the microservices in WSL.

Audd.io API Key

Register an trial account on β€œhttps://audd.io” to obtain your API key before running the microservices.

Inserting the API Key

Open the go file at addison\search\service\service.go and modify the code section:

` const ( api_url = "https://api.audd.io/" api_token = "" // insert api key here

) `

insert the API_KEY string with your own API key.

Running the Microservices

In a terminal, change directory to the microservice folder: cd addison

then, change the directory to the microservice folder in order:

  1. cd track to the track microservice folder
  2. cd search to the search microservice folder
  3. cd cooltown to the cooltown microservice folder

and run the following command after cd into each the microservice folder: a. rm-f go.mod b. go mod init track <- change the target to search or cooltown for the other microservices c. go mod tidy d. go run main.go

  • repeat the above steps for the other microservices search and cooltown

Note

Make sure localhost's port 3000, 3001, 3002 are not occupied by other applications.

MacOS

When running the search microservice script on MacOS, replace the keyword 'base64' with 'gbase64' in the script file.

WSL

Cannot run the microservices in WSL.

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.