Table of Contents
MercaTodo is a E-commerce for the Bootcamp Evertec 2023, this project is made with laravel, Vue.js, Inertia.js and Tailwindcss, we have a admin panel for the basic operations of the CRUD the users and products, we can import and export products in the format .CVS and .XLSX for easy maintenance, for the control of the store we can generate reports for the orders and user and banned users and products. the user can access to the store this have a shopping cart with a payment service placetopay and a orders history for the user. the last improvement is API REST for operations of the CRUD of the products and authentication for the users.
version 3.2.31
version 10.0
- PHP version 8.1.12
- Inertiajs version 0.6.8
- Vitejs version 4.0.0
- Tailwindcss version 3.1.0
the order to run the application, you must do the following:
- Clone the repository with
git clone https://github.com/DanielaRuizA/MercaTodo.git.
- CD for change the directory
cd MercaTodo
composer install
npm install
- Create the .env
cp .env.example .env
- Generate Key
php artisan key:generate
-
Add database information, the credentials for placetopay and the email service in the .env file.
-
Run the database migrations
php artisan migrate --seed
- Run this commands for compile the assets o develop mode.
- You can run the [development mode]
npm run dev
- Or build the [assets]
npm run build
- to see the images, run this
php artisan storage:link
- Run the pho dev server
php artisan serve
For use this app in the Admi role use this credentials in the login
- Username: [email protected]
- Password: 123456
Or use the app like a user select a email from the database with the
- Password: password
The .env file contains the configuration of the application. It is important to configure this file for a excellent app performance. mail This app use https://mailtrap.io PlaceToPay https://docs-gateway.placetopay.com/
DB_CONNECTION
DB_HOST
DB_PORT
DB_DATABASE DB_USERNAME
DB_PASSWORD
MAIL_MAILER
MAIL_HOST
MAIL_PORT
MAIL_USERNAME MAIL_PASSWORD
MAIL_ENCRYPTION
PLACETOPAY_LOGIN
PLACETOPAY_TRANKEY
PLACETOPAY_URl
th command scheduler offers a fresh approach to managing scheduled in this app.
php artisan queue:work
for storage and see the images save then in the route storage/app/public/images
folder.
the export of the products is download in this route storage/app/exports
the reports are download in this route storage\app\reports