= Import the example projects to Eclipse = This page will walk through the steps to import the project1-star-example web Project to Eclipse. Most of the web app examples throughout the quarter will be hosted on Github and will be using maven. == To import the project to Eclipse == 1. Go to [https://github.com/UCI-Chenli-teaching/project1-star-example project1-star-example]. Use "git clone https://github.com/UCI-Chenli-teaching/project1-star-example.git" in the command line to clone the project. You can also just Download the zip file. 2. Open Eclipse -> right click -> import -> import -> under "Maven" -> choose Existing Maven project. [[Image(eclipse_import.png)]] [[Image(import_maven.png)]] 3. For "Root Directory", click "Browse" and select this repository's folder. Click "Finish". [[Image(choose_directory.png)]] 4. In "Java Resources" folder, open src->(default package)->!StarServlet.java. Change the mysql username and password and make sure you have the moviedb database. == To Export the WAR file == You can either generate the WAR file from the Eclipse or from the command line using Maven. Export using Eclipse: Right click project -> export -> WAR file. Export using maven in command line: Go to your project folder first, then do {{{ mvn clean}}}, then do {{{ mvn package}}} Your WAR file should be in the {{{ target/project1-star-example.war }}}