-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplan.txt
More file actions
61 lines (54 loc) · 1.69 KB
/
Copy pathplan.txt
File metadata and controls
61 lines (54 loc) · 1.69 KB
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
Dotasite plan
Setup
- WSL2
- Ubuntu image
- Docker
- Settings
- General
-`Use the WSL 2 based engine`
- https://stackoverflow.com/questions/61592709/docker-not-running-on-ubuntu-wsl-due-to-error-cannot-connect-to-the-docker-daemo
- make sure wsl is default distro for docker
DB
- MySQL (this via docker image)
- `sudo apt install mysql-server`
- Can't install normally on WSL as run levels aren't supported
- `https://github.com/microsoft/WSL/issues/1761`
- might be fine via docker package
- SQLite (ignore)
- https://docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-database
- `sudo apt install sqlite3`
- https://stackoverflow.com/questions/63797381/is-there-a-way-to-explore-a-sqlite-db-visually-gui-via-wsl2
- DB GUI
- TablePlus
- Default mysql settings
- DB_CONNECTION=mysql
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=dotadatasite
- DB_USERNAME=sail
- DB_PASSWORD=password
Backend
- Laravel/PHP/Composer package
- `https://laravel.com/docs/9.x#getting-started-on-windows`
- `curl -s https://laravel.build/example-app | bash`
- `cd example-app && ./vendor/bin/sail up`
- `http://localhost/`
- PHP
- `sudo add-apt-repository ppa:ondrej/php`
- `sudo apt-get update`
- `sudo apt-get install php`
- `sudo apt-get install php-curl`
- in root of project
- `composer update`
- `composer install`
Frontend
- How do I serve a JS SPA from laravel?
- Create API on backend
- Consume API on frontend
- Two separate repos
Notes
- To edit ubuntu root files in windows:
- `sudo nano /etc/php/$version/php.ini`
- `sudo chown myuser /path/to/file`
- edit file via vscode
- `sudo chown root /path/to/file`