/Terratrip

An outdoor-centric road tripping application developed for CSI 3372 in the Fall of 2022.

Primary LanguageJava

  1. Road-trip-api: Backend Setup

    • Install Java 16(OpenJDK)

    • Install Docker:

    • Setup Project in IntelliJ

      • Import the project at the road-trip-planner parent dir (root of repository) into IntelliJ using existing sources
      • Import the inner road-trip-api subdirectory
        1. Go File > Project Structure > Modules > + > Import Module
        2. For this, choose to import using external model with Gradle
        3. IntelliJ should autodetect your Gradle project and download dependencies
      • Configure Lombok
        • Install Lombok Plugin for IntelliJ (IntelliJ IDEA > Preferences > Plugins ... Search for "Lombok" by Michail Plushnikov)
        • Enable Annotation Processing in IntelliJ Compliation (IntelliJ IDEA > Preferences > Build, Execution, Deployment > Compiler > Annotation Processors > Check "Enable annotation processing")
      • Deploy MySql: https://medium.com/containerum/how-to-deploy-mysql-in-docker-containers-ba870247eff7
      • From IntelliJ, create the default road-trip-planner database on the server: File > New > Data Source > Mysql
        1. Configure the connection:
          • Name: csi3372-group-project:us-central1:main
          • Host: 104.198.65.166
          • Port: 3306
          • User: root
          • Database: test_schema
          • URL: jdbc:mysql://104.198.65.166:3306/test_schema
          • Password: )Be1].z#~#Udx+`B
        2. Test Connection and hit OK
        3. On the right-hand side of IntelliJ, click on the "Database" tab
        4. For the road-trip-planner database, right click and navigate to New > Schema
        5. Add a new database named road-trip-planner and hit OK
      • Startup the API from IntelliJ SpringBoot Run Configuration
        • Specify VM Options -Dspring.profiles.active=development
  2. road-trip-frontend: Frontend Setup

FAQ: Dang, the GCP deployment is failing... because space ran out??? Just run this:

$ sudo docker container prune
$ sudo docker image prune

We are no longer using yarn. Use npm instead

npm install
npm run dev

The database is hosted on Google Cloud. See above for credentials.

Production Site: https://terratrip.gq