This project was built using Laravel 9.x, a PHP framework for web applications. To install it, follow the steps below:
- PHP version 8.1
- Composer
- MySQL or another database compatible with Laravel
Clone the repository to your local machine by running the following command in your terminal:
git clone https://github.com/guiiivale/bookstore.git
Navigate to the project directory and run the following command to install the necessary dependencies:
- composer install
Rename the .env.example file to .env and fill in the necessary environment variables, such as the database connection settings.
Generate an app key by running the following command:
- php artisan key:generate
Run the following command to create the necessary tables in the database:
- php artisan migrate
Run the following command to fill the table with some data:
- php artisan db:seed
Run the following command to start the development server:
- php artisan serve
The application should now be accessible at http://localhost:8000.
- Documentation: https://documenter.getpostman.com/view/18539430/2s8ZDX4Nkk
You may want to make sure you have a .env file in your root directory with the necessary configuration for your application to connect to the database before running the migration command.
To run tests you can use some of the following softwares:
- Postman.
- Insomnia.