Sandeepbhatta / majorproject

0 stars 0 forks source link

how do you run the project in your local system? #1

Open mukezhz opened 1 year ago

mukezhz commented 1 year ago

Can you show all the steps how do you execute the project?

How do you install the dependencies since there is package manager config file of node as well as laravel

If possible attach the pictures of each steps.

Sandeepbhatta commented 1 year ago

basically, I have used the breeze package of Laravel. here are a few steps to install:

Run the following command to install Laravel Breeze:

composer require laravel/breeze --dev

Once the installation is complete, run the following command to set up Laravel Breeze:

php artisan breeze:install

after that:

npm install && npm run dev(if required)

finally

php artisan serve

On Sun, Jul 9, 2023 at 8:25 PM Mukesh Kr. Chaudhary < @.***> wrote:

Can you show all the steps how do you execute the project?

How do you install the dependencies since there is package manager config file of node as well as laravel

If possible attach the pictures of each steps.

— Reply to this email directly, view it on GitHub https://github.com/Sandeepbhatta/majorproject/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZHNSHONK4GGCS7REISI7TDXPK7HBANCNFSM6AAAAAA2DRKD5M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mukezhz commented 1 year ago

composer require laravel/breeze --dev

I believe this is going to install laravel/breeze package only. Are you sure you just need this package only?

Don't you need to do migrations?

Other steps are fine for me.

Thank you!

Sandeepbhatta commented 1 year ago

To create table php artisan make:migration create_users_table

To migrate

php artisan migrate

To add more dependencies

composer update To install dependencies Composer install

On Mon, Jul 10, 2023 at 8:04 AM Mukesh Kr. Chaudhary < @.***> wrote:

composer require laravel/breeze --dev

I believe this is going to install laravel/breeze package only. Are you sure you just need this package only?

Don't you need to do migrations?

Other steps are fine for me.

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/Sandeepbhatta/majorproject/issues/1#issuecomment-1627975002, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZHNSHJKPAVPMW6UAWQXWXLXPNRD3ANCNFSM6AAAAAA2DRKD5M . You are receiving this because you commented.Message ID: @.***>

mukezhz commented 1 year ago

:heavy_check_mark: added Dockerfile and docker-compose

Steps to run:

  1. install docker and docker compose: for ubuntu for windows
  2. navigate to the project repository ie majorproject directory
  3. run the following command to build and run

    $ docker-compose up --build
    
    This command will first build the image then run the image:
    Also it will do the migrations too.
  4. [If required] For seeding: Navigate to the your project container
    
    To navigate inside the my-app container
    $ docker exec -it my-app bash

Execute the seed step $ php artisan db:seed


5. Enjoy your application in: http://localhost:8000
Viola !!!
mukezhz commented 1 year ago

image

Running from docker