https://github.com/confusedgustas/urlshortener
Simple URL Shortener.
https://github.com/confusedgustas/urlshortener
backend frontend intellij java maven postgresql spring-boot yaml
Last synced: 2 months ago
JSON representation
Simple URL Shortener.
- Host: GitHub
- URL: https://github.com/confusedgustas/urlshortener
- Owner: confusedGustas
- License: mit
- Created: 2024-03-04T17:35:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T17:35:56.000Z (over 2 years ago)
- Last Synced: 2025-03-29T11:28:06.809Z (about 1 year ago)
- Topics: backend, frontend, intellij, java, maven, postgresql, spring-boot, yaml
- Language: Java
- Homepage:
- Size: 178 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# URL Shortener Application
A simple URL Shortener application built with Spring Boot, PostgreSQL, Angular.
## Prerequisites
Make sure you have the following tools installed before setting up the application:
- Java Development Kit (JDK)
- Apache Maven
- PostgreSQL
## Setup
1. **Clone the repository:**
```bash
git clone https://github.com/confusedGustas/UrlShortener.git
cd UrlShortener
```
2. **Configure PostgreSQL:**
- Create a new database.
- Leave the default settings as it is, Spring Boot will create the needed tables.
- If you want configurate the settings, you can do it so by accessing the `application.yaml` file
```datasource:
url: jdbc:postgresql://localhost:5432/urlshortener
username: postgres
password: postgres
```
3. **Build and run the application:**
```bash
mvn spring-boot:run
cd frontend
npm install
ng serve
```
The application will start on `http://localhost:8080` and `http://localhost:4200`
## Usage
- Access the application through your browser (http://localhost:4200)
## License
This project is licensed under the [MIT License](./LICENSE).