Live version deployed on linux-Apache web server hosted on a Digital Ocean droplet is available here.
Thought mainly for people having registered their music collection on
Discogs,
this web application fulfills the following functions:
- optional: Download user's collection stored on Discogs
- User login/logout
- Create, add, edit, delete depending on user's specific rights:
- Genre
- Album
- Song
- Authentification and authorization via 3rd party service (Google sign in)
- Set up virtual machine:
- Install Virtual Box.
- Install Vagrant.
- Download or clone the virtual machine configuration files.
- Open terminal.
- Change to the
\vagrant
directory. - Download or clone this repository in this directory.
- Start the virtual machine:
vagrant up
thenvagrant ssh
.
-
Set up the back-end SQL database:
You will need a developer account and a Discogs API token.
If you don't want to register as a developer or don't have a Discogs account, skip this step and use the initialvinyls.db
file instead.
- Run
python addcollection.py
.
-
Set up Google OAuth:
- Create a new application.
- Create credentials.
- Download the corresponding JSON file, store in your project directory and rename it
client_secrets.json
.
- Start the application:
- Run
python views.py
.
- Access the application:
- Go to
localhost:5000
in your web browser.
You can access detailed information (in JSON format) about genres, corresponding releases and releases's songs at the following URLs:
- /genres/json
- /genre/genre_id/json
- /release/release_id/json
- Python: application's code .
- sqlalchemy python toolkit. and SQlite engine: back-end database.
- Discogs.
- OAuth .