This project is a simple merchandise delivery platform, which delivers product from one location to another. The delivery of the items are taken care by the agent. The project can also be viewed here GitHub
Before running this project, make sure you have the following software installed:
You also need a running SQL database to use with the project. This project is set up to use MySQL, but you can use any database supported by Spring Boot by modifying the application properties file.
- Open MySQL in your local computer
- Copy the contents of
backend/src/main/resources/create.sql
- Paste it onto MySQL to create database logisticks with relevant tables needed to run the project
- The application properties file is located in
backend/src/main/resources/application.properties
. This file contains the configuration settings for the application. You can modify these settings to use your local database by changing the username and password for execution of the project
- Make sure you have IntelliJ IDEA installed on your machine.
- Open the project folder in the IDE.
- Navigate to
backend/src/test/java/com/example/logisticksApplicationTests.java
and click on the "Run" button that appears on the Navigation Bar of the IDE. - The backend should now be running on
http://localhost:8080
.
-
Open a new terminal or command prompt window.
-
Navigate to the
frontend
folder of the project. -
Install the required dependencies by running the following command: npm install
-
Run the frontend by running the following command: npm run dev
-
The frontend should now be running on
http://localhost:5173
.
You can access the application by opening your web browser and navigating to http://localhost:5173
. This will display the frontend of the application. The frontend interacts with the backend by making API requests to http://localhost:8080
.