Skip to content
GowthamRaj.K edited this page May 26, 2021 · 1 revision

Welcome to the WebSeries-Application wiki!!! 🥇

Steps to Upload in Examly: 👍

step 1 : - Go to springapp/src/main/java

step 2 : - Right click, create new Folders(Packages) as Controller, Dao, Model, ServiceInterface, ServiceInterfaceImplementation.

step 3 : - Right click on each folder, Create respective files on each folder as HomeController.java, WebSeriesRepository.java, WebSeries.java, WebSeriesService.java, WebSeriesServiceImplementation.java and copy down my code and paste it in respective files.

step 4 : - Note: Please Check carefully whether you have imported all the packages correctly in each files

step 5 : - open pom.xml file and add below dependencies

           <dependency>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-data-jpa</artifactId>
	</dependency>
	<dependency>
		<groupId>junit</groupId>
		<artifactId>junit</artifactId>
		<version>4.13.2</version>
	</dependency>

step 6 : - Open new terminal and type cd springapp, press enter.

step 7 : - Next, type in the terminal as mysql -u root --protocol=tcp -p, press enter. It will configure the mysql and ask for password.

step 8 : - Type the password as examly, press enter. You will get Mysql[(none)] in terminal.

step 9 : - Then type as create database webseries; and press enter. Your database will be build successfully.

step 10 : - Then Go to springapp/src/main/resources/application.properties file and replace database url with spring.datasource.url=jdbc:mysql://localhost:3306/webseries

step 11 : - Atlast rename springapp to application and then check whether the application runs successfully by the command 👍

MVN BUILD

  • Builds the project successfully 💯

MVN CLEAN TEST

  • Runs and check whether there is any error while building 👎

step 12 : - Then Run Test cases and if all the testcases passed, submit the project 👍

Clone this wiki locally