-
-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into snyk-fix-4a846bde5630a958f45417772bb27a65
- Loading branch information
Showing
8 changed files
with
641 additions
and
537 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
dbdata | ||
dbdata | ||
mails |
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 |
---|---|---|
|
@@ -8,35 +8,56 @@ | |
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FLaracommerce%2Flaracom.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FLaracommerce%2Flaracom?ref=badge_shield) | ||
|
||
# Get discount on Digital Ocean | ||
|
||
Sign-up with [Digital Ocean and get $10 discount](https://m.do.co/c/bce94237de96)! | ||
|
||
# Laravel FREE E-Commerce Software | ||
|
||
Features Provided | ||
- Products | ||
- Cart | ||
- Checkout | ||
- Categories | ||
- Customers | ||
- Orders | ||
- Payment | ||
- Couriers | ||
- Employees | ||
|
||
- To view more details of the features | ||
See full [documentation](https://jsdecena.github.io/laracom) | ||
|
||
- Products | ||
- Cart | ||
- Checkout | ||
- Categories | ||
- Customers | ||
- Orders | ||
- Payment | ||
- Couriers | ||
- Employees | ||
|
||
- To view more details of the features | ||
See full [documentation](https://jsdecena.github.io/laracom) | ||
|
||
# Simplified DOCKER setup | ||
### In your teminal, issue these commands | ||
|
||
- RUN `docker-compose up -d --build` | ||
- If your runtime is apple silicon, use `docker-compose -f docker-compose-m1.yml up -d --build` command | ||
- RUN `docker exec -it app bash` | ||
- Inside the container, run `composer install && chmod -R 777 storage/ bootstrap/cache/` | ||
- Inside the container, run `php artisan migrate --seed` | ||
- While inside the container, compile the assets with `npm i && npm run dev` | ||
- While inside the container, link the images `php artisan storage:link` | ||
- OPEN [http://localhost:8000](http://localhost:8000) | ||
## In your teminal, issue these commands | ||
|
||
- RUN `docker-compose up -d --build` | ||
- If your runtime is apple silicon, use `docker-compose -f docker-compose-m1.yml up -d --build` command | ||
- RUN `docker exec -it app bash` | ||
- Inside the container, run `composer install && chmod -R 777 storage/ bootstrap/cache/` | ||
- Inside the container, run `php artisan migrate --seed` | ||
- While inside the container, compile the assets with `npm i && npm run dev` | ||
- While inside the container, link the images `php artisan storage:link` | ||
- OPEN [http://localhost:8000](http://localhost:8000) | ||
|
||
## If you want to use mailhog as SMTP | ||
|
||
1.Create a ./mails directory | ||
2.change .env like this | ||
|
||
``` | ||
MAIL_DRIVER=smtp | ||
MAIL_HOST=mailhog | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
``` | ||
|
||
3.Go to http://localhost:8025 and verify that the mailhog screen appears | ||
|
||
# Author | ||
|
||
|
@@ -46,6 +67,6 @@ See full [documentation](https://jsdecena.github.io/laracom) | |
|
||
<a href="https://github.com/jsdecena/laracom/graphs/contributors"><img src="https://opencollective.com/laracom/contributors.svg?width=890" title="contributors" alt="contributors" /></a> | ||
|
||
|
||
## License | ||
|
||
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FLaracommerce%2Flaracom.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FLaracommerce%2Flaracom?ref=badge_large) |
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
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,32 @@ | ||
# | ||
# MailHog Dockerfile | ||
# | ||
|
||
FROM golang:1.18-alpine as builder | ||
|
||
# Install MailHog: | ||
RUN apk --no-cache add --virtual build-dependencies \ | ||
git \ | ||
&& mkdir -p /root/gocode \ | ||
&& export GOPATH=/root/gocode \ | ||
&& go install github.com/mailhog/MailHog@latest | ||
|
||
FROM alpine:3 | ||
# Add mailhog user/group with uid/gid 1000. | ||
# This is a workaround for boot2docker issue #581, see | ||
# https://github.com/boot2docker/boot2docker/issues/581 | ||
RUN adduser -D -u 1000 mailhog | ||
|
||
COPY --from=builder /root/gocode/bin/MailHog /usr/local/bin/ | ||
|
||
USER mailhog | ||
|
||
WORKDIR /home/mailhog | ||
|
||
RUN mkdir ./mails | ||
RUN chmod 644 ./mails | ||
|
||
ENTRYPOINT ["MailHog"] | ||
|
||
# Expose the SMTP and HTTP ports: | ||
EXPOSE 1025 8025 |
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.