Giter VIP home page Giter VIP logo

we-love-movies's Introduction

WeLoveMovies | Application Server

This project is a backend API that was built using RESTful architecture to handle HTTP requests from a front end client application (the WeLoveMovies application). The server allows users to search for movies, theaters, and reviews from the front end application and provides update & delete capabilities for admin users.

Deployed Application

Server deployed here: https://we-love-movies-server-enwl.onrender.com/movies

Client Application (designed by Thinkful) deployed here: https://we-love-movies-front-end-vvvk.onrender.com/

Technology Used

  • JavaScript
  • Node.js
  • Express
  • CORS
  • PostgreSQL
  • Knex.js

Backend API

Routes

The API allows for the following routes:

Method Route Description
GET /movies Lists all movies.
GET /movies/:movieId Reads a specific movie by movie_id.
GET /movies/:movieId/theaters Lists all theaters that are playing a specific movie.
GET /movies/:movieId/reviews Lists all reviews for a specific movie.
GET /theaters Lists all theaters.
GET /reviews Lists all reviews.
PUT /reviews/:reviewId Updates a specific review by review_id.
DELETE /reviews/:reviewId Deletes a specific review by review_id.

All GET requests return a JSON response. PUT request requires application/json body, and returns a JSON response.

Installation

Server

  1. Fork and clone this repository.
  2. Run npm install to install project dependencies.
  3. Run npm start to start the server locally.

Client Application

  1. Go to the Thinkful starter code repository on GitHub.
  2. Fork and clone the repository.
  3. Run npm install to install project dependencies.
  4. Run `npm start' to start the client app locally.

Project Reflection

This is a capstone project I completed as part of Thinkful's Software Engineering certification program. This project was designed to test my ability to build complex servers and access data through a database by peforming the following project tasks:

  • Install and use common middleware packages
  • Receive requests through routes
  • Run tests from the command line
  • Access relevant information through route and query parameters
  • Create an error handler for the case where a route doesn't exist
  • Build an API following RESTful design principles
  • Create and customize a knexfile.js file
  • Create a connection to a database using Knex
  • Write database queries to complete CRUD routes in an Express server
  • Return joined and nested data with Knex
  • Write database migrations using Knex's migration tool
  • Deploy a backend server to a cloud service

we-love-movies's People

Contributors

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