Skip to content

kmfahey/moundmusic

Repository files navigation

moundmusic

This project is an exercise in building a REST API using django, completed as part of the NuCamp coding bootcamp.

Important

To run, this package needs two secrets files that were not included. django will need its secret; create a file in the base directory named 'django_secret_key.dat' containing only that string. postgres needs its username and password as well; create a file named 'postgres_credentials.dat' with the username on the first line and the password on the second.

Background

This project provides a RESTful interface to a postgres database for a discography website (akin to discogs.com or musicbrainz.org), complete with a used CD marketplace akin to discogs.com's.

It supports creation, listing, modification and deletion of albums, artists, songs and genres, as well as associating an object of any one of those four types with objects of the remaining three, via the /albums, /songs, /genres, /artists endpoints.

It also supports creation, listing, modification and deletion of user accounts, as well as setting or authenticating passwords. Through the /users/{userId}/buyer_account and /users/{userId}/seller_account endpoints, it supports the creation, listing, modification and deletion of to-buy and to-sell listings, as well as the creation, deletion and association of buyer account and seller account objects with users.

About

A sample RESTful API implemented in django using django-rest-framework, backed by a PostgreSQL database. Tested with pytest.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages