Before running the system, ensure you have the following dependencies installed:
- Node.js (v18.x or later) - Download and install from Node.js official site.
- npm or yarn (Package Manager) - Installed with Node.js.
- Git (optional, for cloning the repository) - Download from Git official site.
- Java 17 - Install from Adoptium or another distribution.
- Eclipse or Visual Studio Code - Install an IDE for Java development.
- MySQL (v8.x recommended) - Install from MySQL official site.
- Postman (optional, for testing API endpoints) - Download from Postman.
- Create a MySQL database named
database_name. - Configure user permissions and credentials.
- Example MySQL command:
CREATE DATABASE database_name; CREATE USER 'your_user'@'localhost' IDENTIFIED BY 'your_password'; GRANT ALL PRIVILEGES ON database_name.* TO 'your_user'@'localhost'; FLUSH PRIVILEGES;
- Clone the repository:
git clone https://github.com/jusoto/cen4010-backend cd cen4010-backend - Configure the
application.ymlfile for database connection:spring.datasource.url=jdbc:mysql://localhost:3306/database_name spring.datasource.username=your_user spring.datasource.password=your_password
- Build and run the backend:
./gradlew bootRun
- Navigate to the frontend directory:
git clone https://github.com/jusoto/cen4010-front-end cd cen4010-front-end - Install dependencies:
npm install # or yarn install - Start the Next.js application:
npm run dev # or yarn dev
- Ensure the database is running.
- Start the backend first, then the frontend.
- Access the frontend via
http://localhost:3000. - API should be accessible at
http://localhost:8080.
- Adjust port configurations in
application.ymlfile if necessary. - Ensure firewall or antivirus is not blocking required ports.
- Use Docker if you prefer containerized deployment.
For further setup or troubleshooting, refer to the respective framework documentation.