|
1 | | -# Simplified dockerized php application |
2 | | -[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjsdecena%2Fdocker-php-lemp?ref=badge_shield) |
3 | | - |
4 | | -## PHP versioning |
5 | | -- Use v1.0.0 - php 7.2 |
6 | | -- Use v1.1.1 - php 7.4 |
7 | | -- Use v2.0.0 - php 8.0 - current |
| 1 | +# EARN Accounting Software |
| 2 | +DAD custom accounting software |
8 | 3 |
|
9 | 4 | ## How to Install
|
10 | 5 |
|
11 | 6 | - Download and install docker in your system. [Download here](https://www.docker.com/get-started)
|
12 | 7 |
|
13 | 8 | - Install composer [here](https://getcomposer.org/doc/00-intro.md) if you haven't
|
14 | 9 |
|
15 | | -- Clone your app inside the `project` folder. It must have `/public` folder since the webserver looks for the index here |
16 | | - |
17 | | - - A new laravel / lumen application can be installed with: |
18 | | - |
19 | | -```php |
20 | | -composer create-project --prefer-dist laravel/laravel . |
21 | | -``` |
22 | | - |
23 | | -OR |
| 10 | +- - In the `project/`, rename `.env.example` to `.env` |
24 | 11 |
|
25 | | -```php |
26 | | -composer create-project --prefer-dist laravel/lumen . |
27 | | -``` |
| 12 | +- Move to the root folder and run `cd projects && docker-compose up -d` |
28 | 13 |
|
29 | | -- Rename root `.env.example` to `.env` |
| 14 | +- Go inside the docker container: `docker exec -it app sh` |
30 | 15 |
|
31 | | -- Move to the root folder and run `docker-compose up -d` |
| 16 | +- Once inside, run `composer install && php artisan fresh && php artisan db:seed` |
32 | 17 |
|
33 | 18 | - Open your browser and go to [http://localhost:8000](http://localhost:8000)
|
34 | 19 |
|
35 | | -- Enjoy! |
36 | | - |
37 | | -## FAQ |
38 | | - |
39 | | -- Why port 8000? |
40 | | - - Sometimes you want your backend and frontend separated. You can have your frontend runs in the default `:80` and the API to be in port `:8000` |
41 | | - |
42 | | -- Can we change this port? |
43 | | - - Yes. You can change the port in the `webserver` block of the `docker-compose.yml` file |
44 | | - |
45 | | -- Is everything customizable? |
46 | | - - Yes. You can fiddle the `docker-compose.yml` file and make your own customization. Be sure you know what you are doing. |
47 | | - |
48 | | - |
49 | | - |
50 | | -# Author |
51 | | -[Jeff Simons Decena](https://jsdecena.me) |
52 | | - |
53 | | -## License |
54 | | -[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjsdecena%2Fdocker-php-lemp?ref=badge_large) |
| 20 | +- Enjoy! |
0 commit comments