LFMS Dev Environment Set Up

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 on Slack if you need help setting up the environment!

Install Docker and IntelliJ

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

Docker for Fedora - sudo dnf install docker

IntelliJ - https://www.jetbrains.com/idea/download/#section=windows


Create a MySQL Docker Container

  • Make sure Docker is running
    • docker run hello-world
  • Create a MySQL container
    • docker pull mysql/mysql-server:latest
    • docker run -p 3306:3306 --name launch-finance -e MYSQL_ROOT_PASSWORD=PASSWORD -d mysql (Contact admins for password)
    • docker exec it launchfinance mysql -uroot -p
    • CREATE DATABASE launchfinance
  • 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 the 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
  • The application will be running on http://localhost:8080/

Running the Frontend

  • If it is your first time running the application, do npm install in the webapp repository
  • npm start
  • The application will be running on http://localhost:3030/

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 -it -launchfinance mysql -uroot -pPASSWORD


Drop here!
Drop here!
Drop here!
Drop here!