-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
185 changed files
with
70,213 additions
and
106,910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,3 @@ Homestead.json | |
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log | ||
/storage/scout-indexes/*.index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
[submodule "laradock"] | ||
path = laradock | ||
url = https://github.com/Laradock/laradock.git | ||
url = https://github.com/m-elewa/laradock | ||
branch = master | ||
ignore = all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
|
||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"log": true, | ||
"name": "XDebug listening to Laradock", | ||
"type": "php", | ||
"request": "launch", | ||
"port": 9000, | ||
"pathMappings": { | ||
"/var/www": "${workspaceFolder}" | ||
}, | ||
"ignore": [ | ||
"**/vendor/**/*.php" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@servers(['localhost' => '127.0.0.1']) | ||
|
||
@task('deploy', ['on' => 'localhost']) | ||
git pull origin master | ||
composer install | ||
php artisan migrate:fresh --seed | ||
npm install | ||
npm run dev | ||
@endtask |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,37 +25,33 @@ In order to use Freelancers Market, you will need: | |
|
||
## Installation | ||
|
||
1. Clone the source code `git clone --recurse-submodules https://github.com/m-elewa/freelancers-market.git` | ||
2. Enter the laradock folder and rename env-example to .env `cp env-example .env` | ||
3. Make these changes to `.env` | ||
```shell | ||
### PHP Version ########################################### | ||
PHP_VERSION=7.4 | ||
### WORKSPACE ############################################# | ||
WORKSPACE_VUE_CLI_SERVE_HOST_PORT=9090 | ||
``` | ||
4. Rename `laravel-horizon.conf.example` to `laravel-horizon.conf` | ||
1. Install the project | ||
``` | ||
cp laravel-horizon/supervisord.d/laravel-horizon.conf.example laravel-horizon/supervisord.d/laravel-horizon.conf | ||
git clone --recurse-submodules https://github.com/m-elewa/freelancers-market.git \ | ||
&& cd freelancers-market \ | ||
&& git submodule update --remote \ | ||
&& cd laradock \ | ||
&& cp env-example .env | ||
``` | ||
5. Run Docker Containers `make docker-up` or | ||
2. Change `HOST_DOMAIN` and `ACME_EMAIL` in `.env` file to your website domain and email | ||
3. Run Docker Containers with `make up` command from the root directory or from laradock directory run | ||
``` | ||
docker-compose up -d nginx mysql phpmyadmin workspace portainer redis laravel-horizon laravel-echo-server | ||
docker-compose up -d --build --scale nginx=3 | ||
``` | ||
6. To setup the application Run `make setup` or | ||
4. Setup the application by running `make setup` from the root directory or from laradock directory run | ||
``` | ||
docker-compose exec --user=laradock workspace composer setup | ||
``` | ||
7. You can now login with `[email protected]` and password as `password` on `localhost` | ||
You can now login with `[email protected]` and password as `password` | ||
|
||
## Tips | ||
- run `make test-database` to create `test` database for tests | ||
- run `make test` to test the application | ||
- run `make seed` to drop all tables then migrate and seed the database | ||
- for Laravel Telescope go to `localhost/telescope` | ||
- for Laravel Horizon go to `localhost/horizon` | ||
- for Portainer go to `localhost:9010` | ||
- for phpMyAdmin go to `localhost:8080` | ||
- for Laravel Telescope go to `https//{YOURDOMAIN.COM}/telescope` | ||
- for Laravel Horizon go to `https//{YOURDOMAIN.COM}/horizon` | ||
- for Portainer go to `{YOURDOMAIN.COM}:9010` | ||
- for phpMyAdmin go to `{YOURDOMAIN.COM}:8080` | ||
- to enter the Workspace container run `make bash` or | ||
``` | ||
docker-compose exec --user=laradock workspace bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.