ADD DATABASE ADMIN FEATURES TO A JAVA BOOK STORE WEB APP
1. set up github desktop app in your system
2. download and install jdk
3. Install Eclipse /STS ide
4.Installing maven
Go to maven download the zip file and create a folder in c drive as maven and extract the files
Go to environment variable settings and search for path and paste the path of maven till bin folder.
Open the command prompt and check the version of maven by using command mvn version
Below screen will appear
5.please click the url to https://github.com/pluralsight-projects/Java-BookStore.
6. click the fork button and this project will be added to your github account.
7. Repo successfully forked at https://github.com/SasirekhaVijayan/Java-BookStore.git.
8. Next step is to clone the repository.
9. The project is available in this workspace C:\Working Files\JavaWorkspace\Java-BookStore
10. Import the maven project using STS i.e File->maven-Existing Maven Project->Browse Java-
BookStore then the project would be loaded in to STS.
11. Verify Local Environment
Installation
Before starting, make sure you install JDK 8 and Maven and tomcat 7. Follow the installation
Setup and Running Tests
Running tests in a Java Project is a two step process. First, open up a terminal window and cd into
your project directory. Then type the following command to install and run your project on a Tomcat
server:
mvn clean install tomcat9:run
Once that is running the terminal should display something similar to the following:
INFO: Starting Servlet Engine: Apache Tomcat/
May 21, 2018 10:22:35 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Leave that running, and in another terminal type the following:
mvn -Pintegration verify
Running that command should show you the failing tests. This is good! We'll be fixing these
tests once we jump into the build step.
As you move through the modules, you can run module-specific tests that are shown above
the tasks in each module.
Previewing Your Work
In order to see your changes in a browser, make sure Tomcat is still running in your terminal,
and visit http://localhost:8080/books/list in a browser to see the app running.
Output:
Have you pushed your code to GitHub?
In order to verify your code on Pluralsight, you need to open up your computer's terminal at the
root folder of this project and run the following commands:
> git commit -am 'Completed the module'
> git push origin master