Giter Club home page Giter Club logo

groover-spotify's Introduction

Groover Spotify mini webservice

Technology choices:

  • PostgreSQL, as it was mandatory;
  • FastAPI, as a simple (yet more powerful than Flask) HTTP microframework;
  • sqlalchemy, as it plays well with FastAPI;
  • Docker, for production-ready images.

Use with Docker and Docker Compose

For ease of use, this project is powered by Docker.

It creates a PostgreSQL and a FastAPI container.

1) Install Docker and Docker Compose

Or just follow this guide

2) Clone the repository

git clone [email protected]:Laegel/groover-spotify.git

3) Spotify app credentials

In docker-compose.yml, replace "XXX" placeholders with the real credentials.

4) Build the backend image and run the containers

At the root of the repository, to build the image, execute:

docker-compose build

then:

docker-compose up -d

Latest releases are fetched once at startup then periodically (once every 12 hours) with a cron job. At least, it should have worked but cron jobs and Docker don't seem to work well. To fetch releases manually, run:

docker exec -it groover-spotify_backend python -m grooverspotify.fetch_releases

groover-spotify's People

Watchers

 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.