reikiko / findMuseum

findMuseum web build with Laravel 9

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Clone to your own local Laravel

Clone Repository

$ git clone https://github.com/reikiko/findMuseum.git

after that go to your directory

$ cd findMuseum

Install Composer Dependencies

When we run composer, it checks the composer.json file which is submitted to the github repo and lists all of the composer (PHP) packages that your repo requires. Because these packages are constantly changing, the source code is generally not submitted to github, but instead we let composer handle these updates. So to install all this source code we run composer with the following command.

$ composer install

Install NPM Dependencies

Just like how we must install composer packages to move forward, we must also install necessary NPM packages to move forward. This will install Vue.js, Bootstrap.css, Lodash, and Laravel Mix.

$ npm install

Create a copy of your .env file

.env files are not generally committed to source control for security reasons. But there is a .env.example which is a template of the .env file that the project expects us to have. So we will make a copy of the .env.example file and create a .env file that we can start to fill out to do things like database configuration in the next few steps.

$ cp .env.example .env

This will create a copy of the .env.example file in your project and name the copy simply .env.

Generate an app encryption key

$ php artisan key:generate

If you check the .env file again, you will see that it now has a long random string of characters in the APP_KEY field. We now have a valid app encryption key.

In the .env file, add database information to allow Laravel to connect to the database

In the .env file fill in the DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, and DB_PASSWORDoptions to match the credentials of the database you just created. This will allow us to run migrations and seed the database in the next step.

Migrate the database

Once your credentials are in the .env file, now you can migrate your database.

$ php artisan migrate:fresh --seed

--seed option is to automatically insert data to database that has been set inside the DatabaseSeeder.php file

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

findMuseum web build with Laravel 9


Languages

Language:PHP 57.7%Language:Blade 30.5%Language:CSS 10.4%Language:JavaScript 0.9%Language:Shell 0.5%