Skip to content

Laravel URL shortener service (This is a draft so I don't forget)

Notifications You must be signed in to change notification settings

katamaranov/DEMOPROJECT-Laravel-URL-Shortener

Repository files navigation

DEMOPROJECT-Laravel-URL-Shortener

branch:
✔️ master
➖ k3d-cluster
➖ real-sharding

sample image


The following instructions are for testing on your local computer

  1. copy this project
  2. go to copied directory, make sure you have python and pip installed, run hash_installation.bat (for windows) and then run docker compose up -d
  3. in your terminal run docker compose exec -it mainpagelaravel sh and go to /code directory
  4. cp .env.example .env
  5. in .env file
    DB_CONNECTION=mongodb
    DB_HOST=mongo
    DB_PORT=27017
    DB_DATABASE=lus
    DB_USERNAME=root
    DB_PASSWORD=example
  6. composer install
  7. php artisan key:generate
  8. php artisan migrate:fresh --seed
  9. repeat steps 3-7 for container redirectpagelaravel
  10. go to the fcc container, the /codeFCC directory, follow steps 4-7 and then run php artisan schedule:work
  11. for a pretty looking link, add this to hosts file (Windows: C:\Windows\System32\drivers\etc\hosts; Linux: /etc/hosts) this line: 127.0.0.1 lnk.shrt (or use when redirectlocalhost:80 instead)

web interface for mongodb http://localhost:8080/adminer, authentication required (http://localhost:8080/login, email: [email protected] password: 12345678!)

About

Laravel URL shortener service (This is a draft so I don't forget)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published