itsrafsanjani / laravel-instagram-clone

Laravel Instagram Clone!
https://laragram.up.railway.app
MIT License
26 stars 10 forks source link
instagram instagram-clone laravel laravel-instagram social-media social-network vuejs

LaraGram - Laravel Instagram Clone

laragram banner

Laragram is a social media app like Instagram.

Setup Instructions

Clone this repository to your device and run this commands:

Copy .env.example file to .env

cp .env.example .env

Configure .env file with your own credentials

With Docker

# give permission to the storage folder of the application
chmod -R 775 storage
chmod -R 775 bootstrap/cache

# storage symlink
docker exec -it php /bin/sh -c "cd public && ln -s ../storage/app/public storage"

# start the docker containers
docker compose up

# to access the php container, use this command
docker exec -it php /bin/sh

    # install composer from the php container
    composer install

    # install npm packages
    npm install

    # build for production
    npm run build

    # generate the application key using the following command
    php artisan key:generate

    # migrate the tables to the database and seed fake data for testing
    php artisan migrate --seed

# check running docker containers status
docker compose ps

# shut down all running docker containers.
docker compose down

Without Docker

composer install

npm install

php artisan key:generate

php artisan migrate

npm run dev

php artisan storage:link

Some Screenshots

If you like this app don't forget to give a star! ⭐ \ Thank You!