Code Monkey home page Code Monkey logo

web422-assignments's Introduction

Listings App

Description

This is a simple web API server to work with the data of Airbnb listings.

Endpoints

  • POST /api/listings

    This will request to add a new listing to MongoDB.

  • GET /api/listings

    This will accept 2 query parameters "page" and "perPage" as well as (optional) a string "name",

    ie: /api/listings?page=1&perPage=5&name=Volcanoes National Park.

    It will use these values to return all "Listings" objects for a specific "page" to the client as well as optionally filtering by "name", if provided.

  • GET /api/listings/[:_id]

    This will accept a route parameter that represents the _id of the desired listing object and return the specified listing.

  • PUT /api/listings/[:_id]

    This route must accept a route parameter that represents the _id of the desired listing object, ie: /api/listings/9696653, as well as read the contents of the request body.

    It will use these values to update a specific "Listing" document in the collection and return a success / fail message to the client.

  • DELETE /api/listings/[:_id]

    This route must accept a route parameter that represents the _id of the desired listing object, ie: /api/listings/9696653.

    It will use this value to delete a specific "Listing" document from the collection and return a success / fail message to the client.

Technologies

  • Node.js
  • Express.js
  • MongoDB
  • Mongoose
  • Bootstrap
  • REST API

Installation

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Run npm start to start the server

Deployment URL

https://dull-jade-rhinoceros-slip.cyclic.app/

Demo

web422-a2.mp4

web422-assignments's People

Contributors

lomiaw avatar

Watchers

 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.