Skip to content

Commit 5e90988

Browse files
Add README.md
1 parent 3c3a726 commit 5e90988

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

README.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,40 @@
2020

2121
- V-toaster
2222

23+
- Docker
24+
25+
## If you dont know docker you can use the normal version of this project.
26+
27+
2328
1. Clone the project
2429

2530

26-
2. install composer dependencies via this command
27-
: `composer install`
31+
2. Run
32+
: `docker-compose build && docker-compose up -d`
33+
34+
35+
3. install composer dependencies via this command
36+
: `docker-compose run --rm composer install`
37+
38+
39+
*Change sql connection in your .env file*
40+
*DB_CONNECTION=mysql*
41+
*DB_HOST=mysql*
42+
*DB_PORT=3306*
43+
*DB_DATABASE=homestead*
44+
*DB_USERNAME=homestead*
45+
*DB_PASSWORD=secret*
2846

2947

30-
3. Connect to your own database and run database migration
31-
: `php artisan migrate`
48+
4. Connect to the database and run database migration
49+
: `docker-compose run --rm artisan migrate`
3250

3351

34-
4. Run database Seeder to make some fake products and categories
35-
: `php artisan db:seed`
52+
5. Run database Seeder to make some fake users and messages
53+
: `docker-compose run --rm artisan db:seed`
3654

3755

38-
## Done.
56+
## Done, now the app is ready on 'localhost:81'.
3957

4058

4159
**Be Happy:)**

0 commit comments

Comments
 (0)