-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.md.example
61 lines (49 loc) · 1.63 KB
/
readme.md.example
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
TODO
- docker-compose.yml
- Tilret portnumrene 9001, 9002, 9003
- frontend/src/vite.config.ts
- Tilret portnummeret 9002
# Vær obs på om composer install bliver kørt
- Kør: docker-compose up -d
- Kør: docker-compose exec backend composer install
- Kør: docker-compose exec backend cp .env.example .env
- Kør: docker-compose exec backend php artisan key:generate
- I backend:
- Kør: docker-compose exec backend bash
- og:
chown -R www-data:www-data storage;
chown -R www-data:www-data bootstrap/cache;
chmod -R 775 storage;
chmod -R 775 bootstrap/cache;
- Add TODO.md
- Opret dedikeret repo på Github
- Kør:
rm -rf .git
git init
git add --all
git commit -m "init"
git branch -M main
git remote add origin REPO_URL
git push -u origin main
- Tilret /home/maya/GoogleDrive/nytliv/init_dockers.sh med
cd /home/maya/Udvikling/Docker/[folde_name]/ #[ports used]
docker-compose up -d
- Tilføj /home/maya/GoogleDrive/nytliv/backup.php
[
"type" => 'docker-compose',
"name" => 'APP-NAME',
"compose_dir" => '/home/maya/Udvikling/Docker/APP_DIR',
"alt_compose_file" => false,
"database_name" => 'laravel',
]
- Opret migration + model + controller:
eks. "php artisan make:model Flight -mc"
- Tilret migration
- Se: https://laravel.com/docs/8.x/migrations#creating-columns
- Tilret backend/src/database/migrations/create_flights_table...
- Opret database
eks. "php artisan migrate"
- Model
- Tilret evt. basics til en model via https://laravel.com/docs/8.x/eloquent
- Controller
- Tilret via https://laravel.com/docs/8.x/controllers