Skip to main content

Updated for Fall 2026

Environment Installation

Complete the CSC 326 Technology Installation Instructions to set up your environment.

Obtaining CoffeeMaker

You have been given an Individual GitHub repository for the Onboarding Project that follows the pattern ‘csc326-2026-fall-obp-i-section-number’. The repository includes two projects for the backend and frontend of CoffeeMaker. Additionally, there are folders containing technical documents and future deliverables.

  • .github: Contains configuration files for GitHub Actions.
  • .run: Supporting files to run Checkstyle.
  • coffee_maker: The CoffeeMaker backend. Uses Spring Boot + Maven.
  • coffee_maker_frontend: The CoffeeMaker frontend. Uses React + Vite.
  • project-management: Template documents to track your project management activities and deliverables.
  • retros: Template documents to track your AI retrospective deliverables.
  • technical-documents: CoffeeMaker technical documents for requirements, architecture/design, test, process, and build.
  • _config.yml: Configuration file for GitHub pages.
  • Gemfile: Configuration file for GitHub pages.
  • README.md: Top level document for the repository and GitHub pages.

You’ll start by cloning your repository locally through Git commands in the terminal.

mkdir ~/git/csc326-workspace
cd ~/git/csc326-workspace
git clone <INSERT CLONE URL HERE>

Open Development Environment(s)

We recommend using IntelliJ for both frontend and backend development. Once you open IntelliJ, you’ll want to open the folder for your cloned repository: ~/git/csc326-workspace/csc326-2026-fall-obp-i-XXX-YY where XXX is your lab section number and YY is your repo number.

If you want to use VisualStudioCode for frontend development, you should open the coffee_maker_frontend folder.

IntelliJ may recommend installing several plug-ins based on the types of folders in the project workspace.

The IntelliJ menu is shown when you hover over the hamburger icon in the upper left. Settings are in File > Settings.

Backend Setup

Step 1: Setup coffee_maker as a Maven Project

Right click on coffee_maker/pom.xml and select Add as Maven Project. This will add the Maven side panel to your workspace. If the Maven side panel isn’t open, you can add via View > Tool Windows > Maven. Note that you can only add the side panel if your selected project is a Maven project.

Step 2: Reload Maven Project

There are several options to reload (i.e., build) a Maven project.

  • In the Maven side panel, select the down arrow next to the reload icon and select Reload all Maven Projects.
  • Right click on pom.xml and select Maven > Sync Project

Step 3: Run Maven Project & Configure application.properties

Open the following folders in the Project View: coffee_maker/src/main/java. Run the project by right clicking CoffeeMakerApplication and selecting Run CoffeeMakerApplication.main(). You’ll see the following error message in your Console output.

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-08-21T19:35:37.488-04:00 ERROR 6020 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
	If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
	If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

The application failed to start because we need to set up the database information. Make sure your MySQL server is running before continuing.

The database connection information is stored in src/main/resources/application.properties. There is an application.properties.template file that has all the information needed to connect to the database except for your database password. Copy this file and name it application.properties. The .gitignore file for coffee_maker is already set up to ignore application.properties so that you won’t push your password to GitHub. (There may be deductions to the OBP grade for pushing files with secrets!)

If your database password is an empty string, you can use the file as is. If your database has a pasword, edit the file accordingly. The project is setup so that coffee_maker/src/main/java/resources/application.properties is ignored. You should NEVER push password to the remote GitHub repo!

Run the project again. It should start with output like the following. The key line is Started CoffeeMakerApplication at the bottom.

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::               (v3.5.16)

2026-08-15T15:33:45.119-04:00  INFO 28448 --- [coffee_maker] [           main] e.n.c.c.CoffeeMakerApplication           : Starting CoffeeMakerApplication using Java 21.0.11 with PID 28448 (C:\Users\sesmith5\git\csc326-workspace\csc326-coffee-maker-base\coffee_maker\target\classes started by sesmith5 in C:\Users\sesmith5\git\csc326-workspace\csc326-coffee-maker-base)
2026-08-15T15:33:45.123-04:00  INFO 28448 --- [coffee_maker] [           main] e.n.c.c.CoffeeMakerApplication           : No active profile set, falling back to 1 default profile: "default"
2026-08-15T15:33:45.816-04:00  INFO 28448 --- [coffee_maker] [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2026-08-15T15:33:45.883-04:00  INFO 28448 --- [coffee_maker] [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 57 ms. Found 2 JPA repository interfaces.
2026-08-15T15:33:46.289-04:00  INFO 28448 --- [coffee_maker] [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port 8080 (http)
2026-08-15T15:33:46.305-04:00  INFO 28448 --- [coffee_maker] [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2026-08-15T15:33:46.305-04:00  INFO 28448 --- [coffee_maker] [           main] o.apache.catalina.core.StandardEngine    : Starting Servlet engine: [Apache Tomcat/10.1.55]
2026-08-15T15:33:46.355-04:00  INFO 28448 --- [coffee_maker] [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2026-08-15T15:33:46.355-04:00  INFO 28448 --- [coffee_maker] [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1174 ms
2026-08-15T15:33:46.505-04:00  INFO 28448 --- [coffee_maker] [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2026-08-15T15:33:46.555-04:00  INFO 28448 --- [coffee_maker] [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 6.6.53.Final
2026-08-15T15:33:46.585-04:00  INFO 28448 --- [coffee_maker] [           main] o.h.c.internal.RegionFactoryInitiator    : HHH000026: Second-level cache disabled
2026-08-15T15:33:46.821-04:00  INFO 28448 --- [coffee_maker] [           main] o.s.o.j.p.SpringPersistenceUnitInfo      : No LoadTimeWeaver setup: ignoring JPA class transformer
2026-08-15T15:33:46.832-04:00  WARN 28448 --- [coffee_maker] [           main] org.hibernate.orm.deprecation            : HHH90000021: Encountered deprecated setting [hibernate.temp.use_jdbc_metadata_defaults], use [hibernate.boot.allow_jdbc_metadata_access] instead
2026-08-15T15:33:46.845-04:00  WARN 28448 --- [coffee_maker] [           main] org.hibernate.orm.deprecation            : HHH90000025: MySQLDialect does not need to be specified explicitly using 'hibernate.dialect' (remove the property setting and it will be selected by default)
2026-08-15T15:33:46.859-04:00  INFO 28448 --- [coffee_maker] [           main] org.hibernate.orm.connections.pooling    : HHH10001005: Database info:
	Database JDBC URL [undefined/unknown]
	Database driver: undefined/unknown
	Database version: 8.0
	Autocommit mode: undefined/unknown
	Isolation level: <unknown>
	Minimum pool size: undefined/unknown
	Maximum pool size: undefined/unknown
2026-08-15T15:33:47.540-04:00  INFO 28448 --- [coffee_maker] [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
2026-08-15T15:33:47.560-04:00  INFO 28448 --- [coffee_maker] [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2026-08-15T15:33:47.944-04:00  INFO 28448 --- [coffee_maker] [           main] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@2c557eee
2026-08-15T15:33:47.946-04:00  INFO 28448 --- [coffee_maker] [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2026-08-15T15:33:48.026-04:00  INFO 28448 --- [coffee_maker] [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2026-08-15T15:33:48.318-04:00  WARN 28448 --- [coffee_maker] [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2026-08-15T15:33:48.622-04:00  INFO 28448 --- [coffee_maker] [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port 8080 (http) with context path '/'
2026-08-15T15:33:48.629-04:00  INFO 28448 --- [coffee_maker] [           main] e.n.c.c.CoffeeMakerApplication           : Started CoffeeMakerApplication in 3.911 seconds (process running for 4.363)

Step 4: Test the API using Postman

Start Postman.

GET /api/inventory

We’re going to first call a GET request on the Coffee Maker’s inventory. This will initialize the contents of the inventory table in the database. Do the following:

  • Select GET in the drop down menu.
  • Enter http://localhost:8080/api/inventory
  • Send

You’ll see a 200 OK response and the contents of the inventory as JSON.

PUT /api/inventory

Next we can update the inventory using a PUT request. Do the following:

  • Select PUT in the drop down menu.
  • Enter http://localhost:8080/api/inventory
  • Select the Body tab. Select the radio button for raw and JSON from the drop down menu. Enter the following into the text area.
	{
		"coffee": 10,
		"milk": 10,
		"sugar": 10,
		"chocolate": 10
	}
  • Send

You’ll see a 200 OK response and the contents of the updated inventory as JSON.

POST /api/recipes

Create a recipe using a POST request. Do the following:

  • Select POST in the drop down menu.
  • Enter `http://localhost:8080/api/recipes
  • Select the Body tab and enter
	{
		"name": "Coffee",
		"price": 50,
		"coffee": 3,
		"milk": 0,
		"sugar": 0,
		"chocolate": 0
	}
  • Send

You’ll see a 200 OK response and the contents of the updated inventory as JSON. It’s currently ok that the recipe’s id is null and that it actually doesn’t show up in the database. We may have found a bug!

POST /api/makerecipe

Last, we’ll try out making a recipe. Do the following:

  • Select POST in the drop down menu.
  • Enter `http://localhost:8080/api/makerecipe/Coffee
  • Select the Body tab and enter
	100
  • Send

You’ll get back a 404 Not Found error. Since the recipe wasn’t added, we can’t make it. But you have an example of how to run this endpoint.

Step 5: Stopping the Backend

In the Run panel click the red square to stop.

Frontend Setup

Step 0: Start the Backend

The Frontend will load without the backend running, but you won’t be able to do anything. Make sure you start the backend!

Step 1: Open in IDE

You can work on the frontend in either IntelliJ or VSCode.

Opening in IntelliJ

If you opened your assigned repository in IntelliJ, the coffee_maker_frontend project is already there. If not, you’ll need to open the project via the file menu.

Open a Terminal by selecting the Terminal icon in the right side bar or by selecting View > Tool Windows > Terminal. This will open a Terminal in the bottom portion of the workspace. I find it helpful to move it to the right so I can see the Console (backend output) side by side with the Terminal (frontend output).

If you don’t like the default terminal shell used, you can select a preferred one by selecting the down arrow next to the plus button next to the current terminal tab. On Windows, we recommend using Git Bash.

Opening in VS Code

Do the following:

  1. Launch VSCode
  2. Select the file icon in the left side bar. Then click Open Folder.
  3. Browse for coffee_maker_frontend in your GitHub repository.
  4. Select that you trust the authors. Optionally select that you trust the authors of the parent file.
  5. You may be prompted about finding a Git repository in the parent folder. Select Yes to open the repository and select the listed repository.
  6. Click Terminal > New Terminal to open a Terminal window. Make sure you’re in the coffee_maker_frontend folder.

If you are prompted to select a terminal, choose the one you use the most. On Windows, we recommend Git Bash.

Step 2: Install Libraries

Change directory to the coffee_maker_frontend folder in your Git repository. If you used the default clone location, it is something like: ~/git/<repo_name>/coffee_maker_frontend

In the terminal, run the following command. Note that % represents the prompt and is NOT part of the command.

% npm install

This will create the node_modules directory in your project and install the appropriate dependencies listed in the package.json file.

It’s ok if you have errors on the node_modules folder.

Step 3: Run the frontend

In the terminal, run the following command.

% npm run dev

This will start the front end.

Step 4: View in Browser

Enter http://localhost:3000 in the browser. You should see your CoffeeMaker application running!

Step 5: Stopping the frontend

To stop the front end, select the Terminal and enter Ctrl/Cmd+C.

Resources