Backend of the ScholarX project
- Java
- Maven
- MySQL
- Linkedin Social Login App
- Gmail Account with an App Password
- Create a new Linkedin App (help?)
- Click on
Authtab and addhttp://localhost:8080/login/oauth2/code/linkedinas an authorised redirect URL - Make Sure you have properly added the
Sign in with Linkedin productunder products tab
- Create a new gmail account if you don't have one already
- Enable Two Factor Authorisation
- Generate a new
App Password(help?)
- Fork and clone the repository
git clone https://github.com/<your profile name>/scholarx- Open the cloned repo, Find and open the
application.ymlfile - Replace the
${client-id}and${client-secret}with the values from the above linkedin social app
example:
linkedin:
client-id: 324780jdsfg2u4
client-secret: MsdfsdfggsqPFh
client-authentication-method: post
authorization-grant-type: authorization_code- Replace the mail
usernameandpasswordvalues with the generatedApp Passwordand the corresponding gmail address
example:
mail:
host: smtp.gmail.com
port: 587
username: samplemail@gmail.com
password: jhdfklsdjjadskt
properties:- Replace the datasource dummy values with your local mysql server instance credentials
example:
datasource:
url: jdbc:mysql://localhost:3306/scholarx_DB?allowPublicKeyRetrieval=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
username: rootuser
password: rootpassword- Run the application
mvn spring-boot:run