Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contact Joy Sangsrichan (RIT Student)or Austin Heisey (RIT Student) to get access to Jira and GitLab as well as database credentials. Feel free to ping us if you need help setting up the environment too!

...

Docker for Windows/MacOS - https://docs.docker.com/get-docker/

Docker for Fedora - `sudo  sudo dnf install docker`docker

...

  • Make sure Docker is running
    • `docker docker run hello-world`world
  • Create a MySQL container
    • `docker docker pull mysql/mysql-server:latest`latest
    • `docker docker run -p 3306:3306 --name launch-finance -e MYSQL_ROOT_PASSWORD=PASSWORD -d mysql` mysql (Contact admins for password)
  • Open up Docker Dashboard and start the container


Connect Docker with IntelliJ

  • Navigate to Preferences > Build, Execution, Deployment > Docker
  • Connect to Docker daemon with: Docker for [your OS here]
  • Wait for the message Connection Successful
  • There should be a new tab called Services should launch at the bottom, wait for it to connect. You should be able to see the list of Docker containers


Connect to MySQL Database

  • Open the Database tab on the right
  • Add a Datasource > MySQL
  • User: root
  • Password:PASSWORD (Contact admins for password)
  • Database: launchfinance
  • Test Connection


Running the Backend

  • Find the Gradle menu on the right side of the screen: src > Tasks > application > bootRun


Running the Frontend

  • If it is your first time running the application, do `npm install` npm install in the webapp repository`npm start`
  • npm start

Accessing Database through command line 
  • AVOID DOING THIS UNLESS IT IS ABSOLUTELY NECESSARY
  • IntelliJ has this really cool built-in database viewer if you need to view the tables
  • If you need to update the database manually, write a script so FlyWay can keep track of it
  • `docker exec docker exec -it -launchfinance mysql -uroot -pPASSWORD


Drop here!
Drop here!