Skip to content

fullstacktf/podcast-library-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation


πŸš€ Getting Started

  1. Make a fork of the project, clone it and run the following:
npm install
  1. Create an .env file with the following information and replace port:
DB_CONNECTION=mongodb://db:PORT/podcast-library
  1. Run in your Linux terminal:
bash start.sh
  1. Access:
http://localhost:3001/

πŸ“œ Contributors:

πŸ“ Project Structure:

    β”œβ”€β”€ mongo-data
       β”œβ”€β”€ db
          β”œβ”€β”€ seed.js
       β”œβ”€β”€ Dockerfile
       β”œβ”€β”€ init.json  
    β”œβ”€β”€ src
       β”œβ”€β”€ controllers
       β”œβ”€β”€ models       
       β”œβ”€β”€ server.js      
    β”œβ”€β”€ .dockerignore
    β”œβ”€β”€ docker-compose.yml
    β”œβ”€β”€ Dockerfile
    β”œβ”€β”€ package-lock.json
    β”œβ”€β”€ package.json
    β”œβ”€β”€ README.md
    β”œβ”€β”€ run.sh
    β”œβ”€β”€ start.sh

πŸͺ„ Endpoints:

  • GET - "/podcasts/all" - Returns all podcast.

  • GET - "/podcasts/:id" - Returns podcast by ID.

  • GET - "/podcasts/title/:title" - Returns a podcast by title.

  • GET - "/podcasts/genre/all" - Returns all categories.

  • GET - "/podcasts/genre/:genre" - Returns podcasts by category.

  • GET - "/podcasts/author/:author" - Returns podcasts by author.

  • POST - "/podcasts/insert" - Add a podcast.

  • DELETE - "podcasts/:id" - Delete podcast by ID.

  • GET - "/user/all" - Returns all users.

  • GET - "/user/:id" - Returns a user by id.

  • DELETE - "/user/:id" - Delete user by ID.

  • POST - "/user/register" - Register a user.

  • POST - "/user/login" - Login a user.

βš™οΈ Tools:

About

πŸƒ Nodejs, Express & Mongodb database for Podbuster.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •