From e24787960a7ec21eda7e2cfaafd5bea75bf443e6 Mon Sep 17 00:00:00 2001 From: Amit Kumar Nandi <11887616+aamitn@users.noreply.github.com> Date: Tue, 20 Feb 2024 17:23:30 +0530 Subject: [PATCH] final pom changes --- LICENSE.md | 0 README.md | 23 ++++++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 LICENSE.md diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 04554fa..88b8120 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,9 @@ An enterprise-grade, powerful and scalable URL shortener with integrated bio pag * [Prerequisites](#prerequisites) * [Local Setup](#local-setup) * [Deployment](#deployment) -* [Usage](#usage) + * [Cloud Native Deployment](#cloud-native-deployment) +* [SMS Configuration](#sms-service-configuration) +* [Use Cases](#use-cases) * [Contributing](#contributing) * [License](#license) @@ -83,6 +85,8 @@ Before you begin, ensure you have the following installed: ./install.sh 3. Follow the on-screen instructions. +##### Finally, Select Application Server : Tomcat/Wildfly + ### Local Setup @@ -90,6 +94,7 @@ Before you begin, ensure you have the following installed: ```plaintext git clone https://github.com/aamitn/URLShortener.git + cd URLShortener ``` 2. **Apply the Database Schema:** @@ -97,18 +102,17 @@ Before you begin, ensure you have the following installed: Execute the provided **db\_schema.sql** file to set up the necessary tables and schema for the application. This script will also create the required database. ```plaintext - mysql -u your_username -p < path/to/db_schema.sql + mysql -u your_username -p{your_password} < create.sql ``` - + 3. Update the application.properties file: - Update the application.properties file in the src/main/resources directory with your database configuration. + * Update the application.properties file in the src/main/resources directory with your application configuration. 4. Build and run the application: ```plaintext - cd URLShortener - mvn spring-boot:run + mvn spring-boot:run ``` 5. Access the application at http://localhost:8080 @@ -137,7 +141,7 @@ Before you begin, ensure you have the following installed: * Access the Tomcat Manager web interface at `http://localhost:8080/manager/html` (replace with your Tomcat server address). * Log in with your Tomcat manager credentials. * Navigate to the "WAR file to deploy" section. - * Choose the `shorten.war` file using the file upload button. + * Choose the `shortener.war` file using the file upload button. * Click the "Deploy" button. 3. **Configure Variables on deployed war:** @@ -167,7 +171,7 @@ Before you begin, ensure you have the following installed: 6. **Adjust Configuration (Optional):** If you need to customize the application configuration after deployment, you can find the **application.properties** file within the deployed WAR file. THe file can be accesses as : ```plaintext - vi /path/to/tomcat/webapps/your-app/WEB-INF/classes/application.properties + vi /path/to/tomcat/webapps/shortener/WEB-INF/classes/application.properties ``` @@ -193,6 +197,7 @@ To deploy the URL Shortener application on your cloud environment, follow the st docker build -t shortener:latest . docker run -p 8080:8080 -p 3306:3306 shortener:latest ``` +

OR

3. **Use Our Pre-built Image with Docker Compose:** @@ -271,7 +276,7 @@ To configure the SMS service, you need to specify parameters related to the SMS * Check application status from the /monitoring page example http://localhost:8080/monitoring -### Usage Cases +### Use Cases 1. Shorten URLs by visiting the URL Shortener page. 2. Access analytics for each shortened URL.