Skip to content
Open

Atom #185

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
11 changes: 5 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
pipeline {

agent any
/*
tools {
maven "maven3"
}
*/
tools {
maven "MAVEN3"
jdk "JDK17"
}
environment {
NEXUS_VERSION = "nexus3"
NEXUS_PROTOCOL = "http"
NEXUS_URL = "172.31.40.209:8081"
NEXUS_URL = "IP:8081"
NEXUS_REPOSITORY = "vprofile-release"
NEXUS_REPO_ID = "vprofile-release"
NEXUS_CREDENTIAL_ID = "nexuslogin"
Expand Down
63 changes: 50 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# Prerequisites
#
- JDK 11
- Maven 3
# hello

A simple Java web application using Spring MVC and related technologies.

## Prerequisites

- Java (JDK 21)
- Maven 3.9+
- MySQL 8

# Technologies
## Technologies

- Jakarta (Servlet/JSP)
- Spring MVC
- Spring Security
- Spring Data JPA
Expand All @@ -13,13 +19,44 @@
- Tomcat
- MySQL
- Memcached
- Rabbitmq
- ElasticSearch
# Database
Here,we used Mysql DB
sql dump file:
- /src/main/resources/db_backup.sql
- db_backup.sql file is a mysql dump file.we have to import this dump to mysql db server
- > mysql -u <user_name> -p accounts < db_backup.sql
- RabbitMQ
- Elasticsearch

## Database

This project uses MySQL. A SQL dump is included at:

- `src/main/resources/db_backup.sql`

Import the dump into a local database named `accounts` with:

```sh
mysql -u <user_name> -p accounts < src/main/resources/db_backup.sql
```

Replace `<user_name>` with your MySQL user. Create the `accounts` database first if it doesn't exist:

```sh
mysql -u <user_name> -p -e "CREATE DATABASE IF NOT EXISTS accounts;"
```

## Build and run

1. Install prerequisites above.
2. Build the project with Maven:

```sh
mvn clean package
```

3. Deploy the generated WAR to Tomcat (or run via your preferred method).

## Notes

- See `src/main/resources/application.properties` for datasource and other configuration.
- For development you may prefer to run an embedded Tomcat or a local server and set the DB credentials accordingly.

---
Small cleanup of README: clarified prerequisites, added build/run steps and fix typos.


Loading