Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akunna1/movie-search-webapp-rest-api

Writing the restful api for a movie search webapp. Searching for movies using title, genre, rating, and adding sections for sorting movies by ratings, genres etc.
https://github.com/akunna1/movie-search-webapp-rest-api

backend cors database dotenv express mongodb mongoose nodejs nodemon

Last synced: about 1 month ago
JSON representation

Writing the restful api for a movie search webapp. Searching for movies using title, genre, rating, and adding sections for sorting movies by ratings, genres etc.

Awesome Lists containing this project

README

        

#### Project Structure:
- models/movie.js: Defines a Mongoose schema and model for the "movie" collection, outlining the structure of movie documents in the MongoDB database
- routes/movies.js: Manages routes for handling movie-related API requests, including querying, filtering, sorting, and paginating movie data from the MongoDB database
- config/movies.json
- .env:
- dbConnect.js: Handles the logic for establishing and managing the connection to the MongoDB database using Mongoose
- server.js: Initializes the Express application, sets up middleware, connects to the MongoDB database, and listens for incoming requests on a specified port, routing them to the appropriate handler