Developed in part by Lam Nguyen, Raphael Paquin and Moncef Moutaki.
jdbc:h2:file:./autopass.h2.db
To generate client code use maven lifecycle command
mvn verify
orverify -f pom.xml
.
- Change the
application.properties
propertyapplication.ip
to whatever the IP of the machine you will host on will be. - Run a
mvn verify
. - Access the page from
http://<YOUR_IP>:3000
.
If you plan on testing Oauth2 with Google on a separate machine you need to configure a few things.
- Go to the Google console > Credentials and add the redirect url like so :
http://<YOUR_IP>.nip.io:9090/login/oauth2/code/google
- Add the Google account you'll be testing with in the google cloud console explicitly.
The file to put in one of these commands is found in
AutoPass/AutoPass/src/main/resources/autopass-414515-f21ce763f523.json
.
More info on this can be found here.
PowerShell
$env:GOOGLE_APPLICATION_CREDENTIALS="KEY_PATH"
Windows Terminal
set GOOGLE_APPLICATION_CREDENTIALS=KEY_PATH
Macos Terminal || Linux
export GOOGLE_APPLICATION_CREDENTIALS="PATH"
For Stripe, we'll use fake credit cards as we are in testing mode. The list of these cards can be found here.
The app responsible for scanning user cards is the directory named autopass-scanner
. This is an extension to our backend and will only serve as a view component of our app, but built natively through react and electronjs
.
> cd /autopass-scanner
> npm run start
> npm run electron start