Skip to content

KhushiRajurkar/Movie_Logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎬 Movie Notes App

A simple web application to store and manage your favorite movies!
Built with Node.js, Express, PostgreSQL, EJS, and Axios, it allows users to add, edit, and delete movie entries along with ratings, notes, and posters fetched from the OMDb API.


Features

  1. Add movies with title, rating, watched date, and personal notes.
  2. Automatically fetch movie posters using the OMDb API.
  3. Edit movie details anytime.
  4. Delete movies from the list.
  5. Bootstrap-styled UI for a modern look.

🛠️ Tech Stack

  • Backend: Node.js, Express.js
  • Database: PostgreSQL
  • Templating Engine: EJS
  • API: OMDb API (for movie posters & metadata)
  • Styling: Bootstrap + Custom CSS

📸 Screenshots

image


💻 Setup Guide for Movie Notes CRUD App

Follow these steps to set up and run the Movie Notes CRUD App locally on your machine.


🚀 Prerequisites

Before you begin, make sure you have:
Node.js installed – Download Node.js
PostgreSQL installed – Download PostgreSQL
✅ A GitHub account to clone the repository


📦 Step 1: Clone the Repository

git clone https://github.com/KhushiRajurkar/Movie_Logs.git
cd Movie_Logs

📥 Step 2: Install Dependencies

npm install

🔑 Step 3: Set Up Environment Variables

OMDB_API_KEY=your_api_key_here

🛢️ Step 4: Set Up PostgreSQL Database

1️⃣ Open PostgreSQL CLI (psql)

2️⃣ Run the following SQL commands to create your database:

CREATE DATABASE movies_db;
\c movies_db

CREATE TABLE movies (
    id SERIAL PRIMARY KEY,
    title TEXT NOT NULL,
    rating INTEGER NOT NULL CHECK (rating BETWEEN 1 AND 10),
    watched_date DATE NOT NULL,
    notes TEXT,
    poster_url TEXT
);

🚀 Step 5: Start the Server

node index.js

About

A CRUD database that adds users favorite movies data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published