-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from ucsd-cse110-fa23/end2EndReqs
feat: end-to-end testing and final refactoring (#122)
- Loading branch information
Showing
81 changed files
with
2,878 additions
and
1,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,34 @@ | ||
# CSE 110 Project Team 39 Culinary Companion Crew | ||
PantryPals - the application that provides you with recipes that YOU have currently in your possession! | ||
|
||
GitHub Repo: https://github.com/ucsd-cse110-fa23/cse-110-project-team-39 | ||
MS1 Project Board: https://github.com/orgs/ucsd-cse110-fa23/projects/10 | ||
MS2 Project Board: https://github.com/orgs/ucsd-cse110-fa23/projects/74 | ||
|
||
## How to run the app | ||
1. Clone the repository | ||
2. Change or create a `.vscode/launch.json`, and change the `vmArgs` to point to your JavaFX lib. | ||
3. Run from `App.java`. | ||
3. Run from `App.java`. | ||
|
||
### Sample `launch.json` | ||
```json | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "java", | ||
"name": "Current File", | ||
"request": "launch", | ||
"mainClass": "${file}" | ||
}, | ||
{ | ||
"type": "java", | ||
"name": "App", | ||
"request": "launch", | ||
"mainClass": "code.App", | ||
"projectName": "app", | ||
"vmArgs": "--module-path 'user/javafx-sdk-21/lib' --add-modules javafx.controls,javafx.base,javafx.fxml,javafx.graphics,javafx.media,javafx.web --add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED --add-exports javafx.base/com.sun.javafx.event=ALL-UNNAMED" | ||
} | ||
] | ||
} | ||
``` |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package code; | ||
|
||
import java.io.IOException; | ||
|
||
import code.client.Model.AppConfig; | ||
import code.server.AppServer; | ||
import code.server.BaseServer; | ||
import code.server.mocking.MockServer; | ||
|
||
public class Server { | ||
private static BaseServer server; | ||
|
||
public static void main(String[] args) throws IOException { | ||
initServer(); | ||
server.start(); | ||
} | ||
|
||
private static void initServer() throws IOException { | ||
if (AppConfig.MOCKING_ON) { | ||
server = new MockServer(AppConfig.SERVER_HOST, AppConfig.SERVER_PORT); | ||
} else { | ||
server = new AppServer(AppConfig.SERVER_HOST, AppConfig.SERVER_PORT); | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.