- API
- Create plateau
- Get plateau
- Create rover
- Send commands to rover (sample request above)
- Get rover
- Passport api was used for testing (You can find in app.php file)
- Use the bearer token.
- Controller
- Traits
- Redis
- Mysql was used to store the user information to be used to obtain Bearer tokens. Redis was used to manage information about plateau and rover.
To run this demo you'll need to have Mysql, Php installed
- Clone the repo
- Install the dependencies with composer install
- Copy .env.example to .env
- Create a database
- Run php artisan key:generate
- Run php artisan migrate
- Php 7.4.20
- Laravel 8.63.0
- Mysql
- Passport
- Redis
- If you want to try it, you can use the file named MarsRover1.postman_collection.json under public/. You can use the Postman.