Skip to content

mserykh/graphql-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Service

Description

Implement the service Musicify for managing and retrieving data for different entities.

Project setup

git checkout develop
  • Install dependencies
npm install

Setup microservices

  • Clone a repository
  • Follow instructions in README.md for installation

Running the application

  • Rename .env.example to .env
  • Launch the app
npm run start:prod

Testing the application

  • Use (http://localhost:3000) to test the GraphQl service
  • To test Mutaions and Queries add a new user and login to get a JWT token. Insert the JWT token to Headers.

Insert the JWT token to Headers

Queries list

  • artist: get an artist by id
  • artists: get all artists
  • genre: get a genre by id
  • genres: get all genres
  • track: get a track by id
  • tracks: get all tracks
  • band: get a band by id
  • bands: get all bands
  • album: get a album by id
  • albums: get all albums
  • login: login to get
  • user: get a user by id
  • favourites (available only for logged in user): get all added to your favourites bands, tracks, genres and artists

Mutations list

  • Artists
    • createArtist
    • deleteArtist
    • updateArtist
  • Genres
    • createGenre
    • deleteGenre
    • updateGenre
  • Bands
    • createBand
    • deleteBand
    • updateBand
  • Tracks
    • createTrack
    • deleteTrack
    • updateTrack
  • Albums
    • createAlbum
    • deleteAlbum
    • updateAlbum
  • Users
    • register
  • Favourites
    • addTrackToFavourites
    • addBandToFavourites
    • addArtistToFavourites
    • addGenreToFavourites

Mutation requests are available only for logged in users. (except Users.register)

About

Musicify: a service for managing and retrieving data for different entities

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages