File tree 1 file changed +59
-0
lines changed
1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ # THIS := $(realpath $(lastword $(MAKEFILE_LIST)))
2
+ # HERE := $(shell dirname $(THIS))
3
+
4
+
5
+ .PHONY : all
6
+
7
+ all : bannar setup install migrate note serve
8
+
9
+ setup :
10
+ @php -r " file_exists('.env') || copy('.env.example', '.env');"
11
+ @rm -fr database/database.sqlite
12
+ @touch database/database.sqlite
13
+
14
+ install :
15
+ @$(MAKE ) composer
16
+ @$(MAKE ) npm
17
+ @$(MAKE ) key
18
+
19
+ composer :
20
+ @composer install
21
+
22
+ npm :
23
+ @npm ci
24
+ @npm run dev
25
+
26
+ key :
27
+ @php artisan key:generate
28
+
29
+ migrate :
30
+ @php artisan migrate:refresh
31
+ @php artisan db:seed
32
+
33
+ serve :
34
+ @php artisan serve
35
+ @$(MAKE ) note
36
+
37
+ test :
38
+ @php ./vendor/bin/phpunit --testdox
39
+
40
+ test-coverage :
41
+ @php ./vendor/bin/phpunit --coverage-html storage/logs/coverage --testdox
42
+
43
+ note :
44
+ @echo " \n======================================== [NOTE] ========================================"
45
+ @echo " You're ready to go! Visit Ping CRM in your browser, and login with: "
46
+ @echo " [*] Username: johndoe@example.com "
47
+ @echo " [*] Password: secret"
48
+ @echo " ========================================================================================\n"
49
+
50
+ bannar :
51
+ @echo " _____ _ _____ _____ __ __"
52
+ @echo " | __ (_) / ____| __ \| \/ |"
53
+ @echo " | |__) | _ __ __ _| | | |__) | \ / |"
54
+ @echo " | ___/ | '_ \ / _\` | | | _ /| |\/| |"
55
+ @echo " | | | | | | | (_| | |____| | \ \| | | |"
56
+ @echo " |_| |_|_| |_|\__, |\_____|_| \_\_| |_|"
57
+ @echo " __/ |"
58
+ @echo " |___/"
59
+ @echo " \n"
You can’t perform that action at this time.
0 commit comments