Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/akunna1/movie-search-webapp-rest-api
- Owner: akunna1
- Created: 2024-08-14T17:32:10.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-16T16:57:00.000Z (5 months ago)
- Last Synced: 2024-08-20T14:26:47.286Z (5 months ago)
- Topics: backend, cors, database, dotenv, express, mongodb, mongoose, nodejs, nodemon
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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