In a first terminal:
cd backend
mvn clean install
mvn spring-boot:run
In a second terminal:
cd frontend
npm install .
npm start
Postman API testing:
- Install Postman.
- Launch Postman and click on the 'Import' button in the top left corner.
- Select the
Lendly.postman_collection.json
file located in thebackend/postman
folder. - After importing, you'll see the 'Lendly' collection in the left sidebar. Click on the collection and start testing the API endpoints.
Database connection:
- Start it from Google Cloud Dashboard or
gcloud sql instances patch lendly-db --activation-policy ALWAYS
- Stop it from Google Cloud Dashboard or
gcloud sql instances patch lendly-db --activation-policy NEVER
- Advanced settings: Google Cloud Shell or
gcloud sql connect lendly-db --user=root
Deployment steps:
- Start App Engine instance in App Engine Settings within Google Cloud Dashboard
- Deploys begin on push
- Stop App Engine instance in App Engine Settings within Google Cloud Dashboard