This application is my personal project to keep track of college football recruits and players. This is a spring boot angular application using a postgresql database using R2DBC and reactive io.
Added the ability to scrape all the power five colleges.
Working version with web scraping of site and sortable display table. Currently only works with Florida State.
Add Noles247 web scraping.
Add the initial basic Angular web pages with routes.
This is the initial version with only Spring Boot and Angular working together. Not much functionality yet just the initial shell of the application.
- Spring Boot -
v2.3.0.M4
- Java -
v1.8
- Angular -
v9.1.3
- Postgresql -
v12.2
- Gradle -
v6.3
- R2DBC
- Reactive.io
- Netty
- Flyway
I use a Mac and IntelliJ IDEA so these instructions are for that setup. After you clone the repository then follow the steps below.
First step is to start the Postgresql database locally or in a docker container. To start in a docker container run
the following command and of course replace the <password>
with your own:
docker run --name fsuroster -e POSTGRES_PASSWORD=<password> -d -p 5432:5432 postgres
To build the Angular application follow the following steps:
- open a terminal
- navigate to
recruits/src/webapp
- run the following command only if the first time
npm install
- run the following command
npm run build
Next build the Spring Boot application with these steps:
- open a terminal
- navigate to
recruits/
- run the following command
./gradlew clean build
Building the angular application and the spring boot application above is basically to make sure everything builds correctly, because the command below will build everything, generate a bootJar and then run it.
First you will need to create a file called application-dev.yml
in the src/main/resources
folder. It needs to contain something like the following. The important parts are the spring configuration values. Replace <password>
with your password.
# application properties
server:
port: 8080
logging:
level:
root: INFO
com:
scurtis: TRACE
spring:
datasource:
url: jdbc:postgresql://localhost:5432/postgres
username: postgres
password: <password>
r2dbc:
url: r2dbc:postgresql://localhost:5432/postgres
username: postgres
password: <password>
- In the terminal from the root folder (recruits) you run the following command:
SPRING_PROFILES_ACTIVE=dev gradle build bootRun
- navigate to http://localhost:8080
NOTE: You can also build and run the application from IntelliJ