Coder Social home page Coder Social logo

go-vinyl's Introduction

go-vinyl

Go+Gin web service storing my vinyl collection and serving it as a web app

The skeleton of this code is from the golang tutorial for writing a web service . It's a good tutorial, if you're interested in this code you should read through that too.

The schema used here is a departure from the tutorial, it uses the same schema found in Discog's API and published database snapshots.

REST Service endpoints

/records
* **GET** gets a list of vinyl records returned as JSON. If no filters are specified, it will return the 20 most recent additions * **POST** adds a new album to the collection (auth required)
/records/:id
* **GET** gets the details of a vinyl record
/artists/:id
* **GET** gets details about an individual artist and the records they have appeared on

Database representation

The data is stored mostly as flat files on disk because the majority of release information is written once and permanently set.

The collection information is also in a flat file but it will be moved into a proper RDBMS after enough of the collection schema is defined and after the collection data itself has been more fully populated. (KISS principle)

  • releases/

  • masters/

  • artists/

  • labels/

  • collection/

Developing and deploying

If you want to make a contribution, please run your own instance and share screenshots of visible changes when making any pull requests.

// TODO: include build/test/deploy instructions here.

go-vinyl's People

Contributors

kevindamm avatar

Watchers

 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.