-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO.list
91 lines (75 loc) · 4.13 KB
/
TODO.list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Done:
Finire la modifica per quanto riguarda le informazioni sul servizio DONE
use the webhook to mark an appointment as payed so in the success page we check the appointment by the id and the the fact that is been evaded DONE
add the price on the service list DONE
add propriety of service like images, description DONE
control if we need api/book.php because i think that we don't need it anymore DONE
Aggiungere un controllo per gli expire url di stripe per evitare che una persona posa comprare lo stesso slot, dato che il link rimane valido per 24h DONE
add timestamp to inserted appointments to view hom much time is passed and delete the ones that aren't payed DONE
add a success and failure page with cool graphics DONE
view if in index.php we can bypass the form with hidden elements DONE
Control the mechanism that create the slots for slots that have wait time after (the user shouldn't see but the merchant yes) DONE
add the list of payment methods with the option to accept cash DONE
Add a check for the date in php DONE
remove sensitive data from service api DONE
fix indentation DONE
add an admin panel with login
Allow merchant to accept order with cash as payment method
Allow merchant to create services
Allow merchant to enable/disable services
Print the navbar in the admin page dynamically
Add send mail
Disable the deletion of current admin user
Setup mail (https://github.com/PHPMailer/PHPMailer)
Prenotazione servizi non attivi (Con passaggio di parametri arbitrari)
prenotazioni date passate o future ma disattivate (Con passaggio di parametri arbitrari)
Add recaptcha
Obfuscate the js code
change the code to check if an employee is active in all uses case
Add error modals to admin setup
manage the errors in a better way and fix some of the error messages
Check service Integration in all classes and
RECHECK FIX PAYMENTS STATUS CODE
Add payment method handlers enable and disable
Add holidays
Prenotazione con dipendenti non attivi (Con passaggio di parametri arbitrari)
implement docker (last thing to do)
allows employee to make bookings without max day limitation
add the check if the employee is active
Disable credit card by default in base sql
don't let admin enable credit card if all settings arent setted up
Allow admin and employee to ignore bookable until time
ADD notification when an appointment is deleted
Aggiungi pausa pranzo per servizi in modo da evitare di creare due servizi per mattina e pomeriggio
Rimuovere la possibilità di inserire custom worktimes in conflitto tra di loro (ES con la stessa data o in un range con una data già messa)
-----------------------------------------------------------------
TO DO:
Check update user password and /api/getemployees for problem with service class
Aggiungere tab vacanze
Add is admin check to all admin pages / api via user class because if we remove an user the admin access it will be keeped granted till the next login
Aggiungere la possibilità di cancellare i servizi con appuntamenti gia presi
migrate time to unix timestamp
Change docs for watchtower
Implementare servizi di gruppo con calcolo dinamico del prezzo
Add config php with db
Code review
Useful command:
For debugging ->
stripe listen --forward-to localhost:3000/payment/process_order.php
install nodejs an npm: sudo apt install nodejs npm
download needed node packages: cd app; npm install
install php and some modules: sudo apt install php8.1 php-mysql php-curl php-xml php-mbstring php-imagick php-zip php-gd
install composer: sudo apt install composer
install composer packages: composer install (inside app folder)
generate a .env file from the baseEnv file template
For installation ->
composer require stripe/stripe-php
composer require vlucas/phpdotenv
add required libraries from composer: composer install
use this to add new classes to autoload
composer dump-autoload
obfuscate code at https://www.obfuscator.io/
Remember to set the correct timezone (Europe/Rome) in php.ini file, we can se the location with php --ini
date.timezone = "Europe/Rome"
https://betterprogramming.pub/setting-up-a-multi-arch-docker-build-with-circleci-and-alpine-for-your-apple-m1-ba739ef1f754
https://emmer.dev/blog/publishing-docker-images-with-circleci/