Foday
Foday

Movie-API backend

Tech Stack

Backend Framework:
  • Node.js
  • Express.js
Database
  • MongoDB
  • Mongoose
  • ODM
Authentication
  • JWT (JSON Web Tokens)
  • bcrypt
API
  • RESTful (JSON)
Testing
  • Postman (API testing)
Deployment
  • Heroku
  • MongoDB Atlas

Description

movie_api is a robust RESTful API built with Node.js and Express, serving as the backend for the myFlix movie app. The API provides endpoints to access and manage a movie database, allowing users to register, log in, update their profile, and maintain a list of favorite movies. It follows modern security practices and is designed for scalable deployment and integration with client-side apps.

Features

  • User Management
    Register, authenticate, update profile info, and securely delete users.
  • Movie Database
    Access a curated list of movies with detailed info (genre, director, description, image URL).
  • Favorites
    Add or remove movies from a personal favorites list.
  • Filtering
    Retrieve movies by title, genre, or director.
  • Secure Authentication
    JWT-based login and protected routes.
  • Secure Authentication
    Notifications: User actions are confirmed and errors are reported using friendly toast notifications
  • Input Validation
    Ensures strong passwords, valid emails, and robust data types.
  • CORS Support
    Configured for cross-origin requests from deployed frontends

Highlights

  • Built with Express.js for scalability and clean RESTful architecture.
  • Uses Mongoose for schema modeling and MongoDB Atlas for cloud database.
  • Strong security
    password hashing with bcrypt, JWT-based authentication, input validation.
  • Modular, easy-to-maintain code structure with clear separation of routes, models, and middleware.
  • Fully documented endpoints with usage examples for easy client integration (see README).
  • Successfully deployed and integrated with Angular and React frontends.

Responsive Design

  • Mobile and desktop views

Portfolio