Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 1.53 KB

README.md

File metadata and controls

57 lines (35 loc) · 1.53 KB

fiction-times-backend

Setting up the project for development

Prerequisites

  • Java
  • Maven
  • MySQL (xampp)
  • Apache Tomcat

Configs

  • Set JAVA_HOME, CATALINA_HOME, and MAVEN_HOME environment variables

  • Add java, and maven to PATH environment variable

Steps

  1. Fork and clone the repository,

    git clone https://github.com/<your profile name>/fiction-times-backend
    
  2. Create a database with name fictionTimes

  3. Open the cloned repo, and find, duplicate, and rename the database.properties.example file to database.properties

  4. Replace ${PORT}, ${USERNAME}, and ${PASSWORD} with your MySQL database port number and credentials

Running the project

Intellij run configuration

  1. Click Add Configuration...

  2. Select Add new configuration > Tomcat Server > Local image

  3. Click configure and add Tomcat home path image

  4. Under deployment click on + icon and select Artifact image

  5. Select the exploded artifact image

  6. Click Apply and Ok

  7. Select the play button to build and deploy the application

Build project using maven

mvn install