Git Product home page Git Product logo

nodejs-api-singers-songs's Introduction

nodejs-api-singers-songs

Songs

It is a Singers Songs project developed using Nodejs. The main purpose is to use the service structure in Node Js. In this project, Express js, Express Generator, TravisCI, MongoDB, Mongoose, Json Web Token are also used for test layers, Mocha and Chai. The project has been deployed to Heroku and you can test it in live environment with some queries at the bottom

Route HTTP Verb POST body Description
/api/songs GET Empty List all movies.
/api/songs POST {'name':'Bohemian Rhapsody', 'type':'Rock', 'published_year':'1975', sold_piece:1990, singer_id:"id"} Create a new song.
/api/songs/:song_id GET Empty Get a movie.
/api/songs/:song_id PUT {'name':'foo', 'surname':'bar'} Update a song with new info.
/api/songs/:song_id DELETE Empty Delete a song.
/api/songs/top10 GET Empty Get the top 10 songs.
/api/songs/between/:start_year/:end_year GET Empty Songs between two dates.

Singers

Route HTTP Verb POST body Description
/api/singers GET Empty List all singers.
/api/singers POST { name: 'Queen', surname:'', is_group: true,country:'USA' } Create a new singer.
/api/singers/:singer_id GET Empty Get a singer.
/api/singers/group GET Empty Get the only group singers.
/api/singers/:singer_id PUT {'name':'foo', 'surname':'bar', '} Update a singer with new info.
/api/singers/:singer_id DELETE Empty Delete a singer.

Index

Route HTTP Verb POST body Description
/register POST { username: 'foo', password:'123456' } Create a new user.
/authenticate POST { username: 'foo', password:'123456' } Generate a token.

Demo

Live demo on Heroku

Get All Singers

Get Singer

Get All Songs

Get Song

enjoy!

nodejs-api-singers-songs's People

Contributors

aenesgur avatar

Stargazers

 avatar  avatar  avatar

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.