Giter Club home page Giter Club logo

papsukkal's Introduction

Papsukkal CRUD API

Overview

Papsukkal is a CRUD API for managing a collection of movies. It provides endpoints to create, read, update, and delete movie records stored in a MongoDB database.

Features

  • Create new movie records
  • Read existing movie records
    • Find all movies
    • Find movies by ID
    • Search movies by person (director, screenwriter, producer, actor, cinematographer, editor, composer)
    • Search movies by title
  • Update existing movie records
  • Delete movie records by ID

Technologies Used

  • Java with Spring Boot
  • MongoDB for database
  • Jakarta Validation for data validation
  • Lombok for boilerplate code reduction
  • Spring Data MongoDB for MongoDB integration
  • Cross-Origin Resource Sharing (CORS) enabled for frontend integration

Getting Started

Prerequisites

  • Java 11 or higher
  • MongoDB
  • Maven
  • Node.js and npm (for Angular front-end)

Installation

Back-end

  1. Clone the repository:
    git clone https://github.com/ryunezm/papsukkal.git
    cd papsukkal
    
  2. Install dependencies and build the project:
    mvn clean install
    
  3. Configure MongoDB connection in application.properties:
    spring.data.mongodb.database=yourDatabaseName
    spring.data.mongodb.uri=mongodb://localhost:27017/yourDatabaseName
    
  4. Run the application:
    mvn spring-boot:run
    

Front-end

  1. Navigate to the movie-app directory:
    cd movie-app
    
  2. Install dependencies:
    npm install
    
  3. Run the Angular application:
    ng serve
    

The Angular application will be available at http://localhost:4200.

API Endpoints

  • Fetch all movies.
    GET /movies
    
  • Fetch a movie by its ID.
    GET /movies/{id}
    
  • Search for movies by any associated person (e.g., director, actor).
    GET /movies/searchByPerson/{keyword}
    
  • Search for movies by title.
    GET /movies/searchByTitle/{title}
    
  • Create a new movie.
    POST /movies
    
  • Update an existing movie by its ID.
      PUT /movies/{id}
    
  • Delete a movie by its ID.
    DELETE /movies/{id}
    
    

This README.md just provides an overview of the project, installation instructions and API endpoints.

papsukkal's People

Contributors

ryunezm 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.