Welcome to Fall 2023 ECSE 321's Group 05 repository! Please check our wiki for more information about our project.
- Clone the project
# Clone the repository using HTTPS
git clone https://github.com/McGill-ECSE321-Fall2023/project-group-05.git
# Clone the repository using SSH
git clone git@github.com:McGill-ECSE321-Fall2023/project-group-05.git- Change directory to the project
cd project-group-05- To build & test our project:
cd backend
# for UNIX-like OS (Linux, macOS, etc.)
chmod +x gradlew
./gradlew build
# for Windows
gradlew.bat build # Build + test - Our database is open to the public and pre-configured, so you don't need to configure anything to run the project. However, if you want to run the project locally, you can change the database configuration in
backend/src/main/resources/application.properties: (replaceYOUR_DATABASEandPASSWORDwith your own database name and password)
server.port = ${PORT:8080}
spring.datasource.driver-class-name=org.postgresql.Driver
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:postgresql://localhost:5432/YOUR_DATABASE
spring.datasource.username=postgres
spring.datasource.password=PASSWORD- All the frontend files are in the
frontendfolder. - To start
cd frontend
npm install # to install dependencies- We use Vite to develop and build our frontend. Our project requires an
.envfile to be able to connect to the backend. You can create a.envfile in thefrontendfolder and add the following line to it:
VITE_BACKEND = "http://localhost:8080"
Note that localhost:8080 is the default backend URL. Please change the URL if you are using a different backend URL.
- To start the development server, run:
npm run dev # to start the development server
npm run build # to build the project for production.
├── backend # The backend of the project
│ ├── build.gradle
│ ├── gradle
│ │ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
│ ├── gradlew
│ ├── gradlew.bat
│ ├── HELP.md
│ ├── settings.gradle
│ └── src
│ ├── main
│ │ ├── java/ca/mcgill/ecse321/Mar1HotelSystem
│ │ │ ├── model # The domain model of the project
│ │ │ ├── dao # The data access objects (CRUD)
│ │ │ └── Mar1HotelSystemApplication.java # Main app
│ │ └── resources
│ │ ├── application.properties # App configuration
│ │ ├── static
│ │ └── templates
│ └── test/java/ca/mcgill/ecse321/Mar1HotelSystem
│ ├── tests # CRUD - Database test files
│ └── Mar1HotelSystemApplicationTests.java # Test file
├── documentation # Documentation: UML diagrams, Umple code, etc.
│ ├── README.md
│ ├── UMLCodes
│ │ ├── # PlantUML, Umple code
│ │ ├── UseCaseDiagram.plantuml
│ │ ├── DomainModel.ump
│ │ └── ...
│ └── UMLDiagrams
│ ├── # Figures (PNG, JPG, SVG format)
│ ├── UseCaseDiagram.png
│ └── ...
├── frontend # The frontend of the project
│ ├── index.html
│ ├── package.json
│ ├── package-lock.json
│ └── README.md
├── LICENSE
└── README.md # This document