Git Product home page Git Product logo

movies's Introduction

Java Web application

Build Status codebeat badge

Movies catalog

This is a demo application using Servlets/JSPs and JDBC. It is a small catalog of movies with the following features for guest users.

  • Filter movies by category.
  • Review the details of a given movie.

Registered users have the ability to.

  • Add more movies
  • Rate movies

Setup

You need to have both Tomcat and MySQL up and running to use this application. To setup the application you'll need to customize an application.properties file.

$ cp src/main/resources/example.properties src/main/resources/application.properties

Now you're ready to run the command line application in the class com.codeup.movies.setup.MoviesSetupApplication. It will create and seed the database.

$ mvn compile
$ java -cp "$(mvn -q exec:exec -Dexec.executable=echo -Dexec.args='%classpath')" com.codeup.movies.setup.MoviesSetupApplication

To run the application with Tomcat, create a context.xml file for Tomcat with the same database information.

$ cp src/main/webapp/META-INF/context.dist.xml src/main/webapp/META-INF/context.xml

Tests

The tests use a different MySQL database, so you'll need a different properties file.

$ cp src/test/resources/example.properties src/test/resources/tests.properties

To run the tests execute.

$ mvn test

movies's People

Stargazers

 avatar

Watchers

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