-
π Requirements:
-
Docker installed.
- Make a fork of the project, clone it and run the following:
npm install
- Create an .env file with the following information and replace port:
DB_CONNECTION=mongodb://db:PORT/podcast-library
- Run in your Linux terminal:
bash start.sh
- Access:
http://localhost:3001/
- π» Ricardo Pineda - @ririchi2
- π» Pablo HernΓ‘ndez - @pheralb
- π» Rafael Gandolfo - @RafaGG21
- π» MarΓa Lujan - @MariaLujanIbrahin
βββ 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
-
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.