This Laravel project simulates robots and chargers in a warehouse environment. The robots are responsible for moving cargo, while the chargers are responsible for charging the robots.
This project is built on top of the framework.
- Clone the repository:
git clone https://github.com/EVP-11-csapat/robotok.git
- Navigate to the project directory:
cd robotok
- Install the dependencies:
composer install | npm install
- Create a copy of the .env file:
cp .env.example .env
- Generate an application key:
php artisan key:generate
- Configure the database settings in the .env file
- Run the database migrations:
php artisan migrate
- Seed the database:
php artisan db:seed
- To start the application, run the following commands:
npm run dev
php artisan serve
- Open the website in your browser:
localhost:8000
- Upon visiting the Robots site, you will be presented with a dropdown selector to choose a simulation. *
- At the bottom of the dropdown, you will find a "Create new Simulation" button and a "Join Simulation" button.
- Clicking the "Create Simulation" button will take you to the Create screen. *
- On the Create screen, you can add a product to the template products:
- Enter the name of the product in the
NAME
field. - Check the
PERISHABLE
checkbox if the product is perishable. - Click the
ADD
button to add the product to the template table. - An associated
DELETE
button will be added for each product.
- Enter the name of the product in the
- If you don't enter any products, the system will automatically generate 10 template products.
- Press the
SUBMIT
button to enter the dashboard screen *. - Clicking the
Join Simulation
button on the dashboard screen will also take you to the dashboard screen.
Dashboard Screen Robot and Charger Purchase *
- On the dashboard screen, there is a dropdown menu to select a robot from a generated list.
- Next to the robot dropdown, you will find a
Buy
button. - A similar dropdown and button combination is available for selecting and purchasing chargers.
- Next to the chargers dropdown, you will find a "Buy Charger" button.
- Initially, purchased robots and chargers are inactive.
- To activate a robot or a charger, click the
Activate
button next to them.
Robot and Charger Management *
- On the dashboard screen, you will find two tables for robot and charger management.
- The robot management table displays the details of purchased robots, including their names, activation status, current charge and active hours.
- The charger management table displays the details of purchased chargers, including their names, activation status, if they are currently charging a robot and active hours.
- On the dashboard screen, you will see a
Simulate
button, which also displays the current day and the cumulative balance of the current simulation. - Next to the "Simulate" button, there is a field where you can enter the desired number of cargos for the day.
- Press the
Generate Cargo
button to generate the specified number of cargos. - Below this section, there are five tables:
Here are some screenshots of the Robots application for reference:
The documentation for the project can be found HERE.
This project is licensed under the MIT License. See the LICENSE file for details.