- Clone the repo in your machine.
- Then move to project folder and open terminal there.
- Run this command in terminal: composer install . This command will install all the dependencies of the project.
- Now create a DB with name shop or something else.
- Then create .env file where need to define DB name and host.
- After setting .env file, run migration command as :
php artisan migrate
This will create DB schema - Now use the DB seeder command to creat random users:
php artisan db:seed
To run project , run the below command:
Project will run on https://127.0.0.1:8000
To add deals on website, rrun the below url:
an Admin dashboard will open. Now you will see a Navigation bar on top from where you can Add the Flash Sale and get the List of all the sales.
To add flash sale, this url will be used:
To get list of all flash sales, this url will be used:
Use the USER IDs from rnage 1 to 10 in url to see today's deal as:
When Uid id passes in URL parameters, user will able to see the deal on home page
User can buy a one and only quantity of a deal.