Skip to content

dev-aex/course_coderhouse_backend-3

Repository files navigation

Adopme

Description

AdoptMe is a Node.js and Express-powered platform designed to streamline pet adoptions through a robust REST API. It provides comprehensive tools for managing adoptable pets, user profiles, and adoption procedures.

Getting Started

Install dependencies

$ npm install

Run the application

$ npm run dev

Server ups

http://localhost:9090

Endpoints

Docs

ROUTE /api/docs

Mocked Data

Users

GET /api/mocks/mockingusers/:users

Pets

GET /api/mocks/mockingpets/:pets

Users, pets and save it to DB

POST /api/mocks/generatemockingdata/:users/:pets

Users

Get all users

GET /api/users/

Get one user by ID

GET /api/users/:uid

Update one user by ID

PUT /api/users/:uid

Delete one user by ID

DELETE /api/users/:uid

Pets

Get all pets

GET /api/pets/

Get one pet by ID

GET /api/pets/:pid

Update one pet by ID

PUT /api/pets/:pid

Delete one pet by ID

DELETE /api/pets/:pid

Adoptions

Get all adoptions

GET /api/adoptions/

Get one adoption by ID

GET /api/adoptions/:aid

Update one adoption by ID

POST /api/adoptions/:aid

Running Tests

To run tests, run the following command

  npm run test

Docker

Image link

https://hub.docker.com/r/aaex/coderhouse_final_back-3

Getting started

Pull image

docker pull aaex/coderhouse_final_back-3

Run image on container

docker run -d -p 8080:9090 -e PORT=9090 -e MONGODB_URL=[YOUR MONGO URI] aaex/coderhouse_final_back-3

Image ENVs

  • PORT: 9090
  • MONGODB_URL: link to your mongo DB.

Course information

  • Class: 70375
  • Instructor: Alejandro Huertas
  • Tutor: Marcos Peirone

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors