Skip to content

AlanD20/car-center

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Center

  • a single landing page to showcase the company's information in 3 different languages

    • Includes an admin panel that gives you full control over the entire website and to Create, Edit, and Delete slide shows, services, team members, and partners. including the about section.
    • The website is fully responsive for both desktop & mobile with PWA (Progressive Web App) enabled. Allowing visitors to install the website as an application on their smartphone.
    • I have done a full server setup including setting up the Laravel project to be deployed through cPanel without having SSH access.
    • SEO-friendly and Google indexing.

Deployment

  • The project configured for CPANEL installation, you do not have to worry about changing file paths. Also, you can serve it through Artisan command.

Deploying through SSH access

  • You can follow this guide to learn more about how to deploy Laravel project through SSH access.

Click here for the guide

Local Development

  • Don't forget to change the current working directory to laravel.

    cd laravel
  1. Install and update required dependencies on your local machine.

    composer install --no-dev -o
  2. Install npm packages using yarn.

    yarn
  3. Clear cache and dump autoload.

    yarn cache:clear
    composer dump-autoload -o
  4. Cache the application and generate new app key.

    composer run deploy
  5. Do not forget to edit .env file with your information.

  6. Migrate and seed the database.

    php artisan migrate --seed
  7. Run Vite server and serve the laravel application. (requires two terminal)

    yarn dev
    php artisan serve

Deploying on CPANEL

  1. Compress the project including both laravel and public_html directory then upload it to CPANEL.

  2. Change permissions for the following folders.

    sudo chmod 775 -R laravel/storage
    sudo chmod 775 -R laravel/bootstrap/cache
    
    # if you have ssh access, you may have to give ownership to nginx as well.
    sudo chown -R $USER:www-data storage
    sudo chown -R $USER:www-data bootstrap/cache
  3. Visit the following path on your website to clear out the application cache. (You can change header authorization key in .env file) https://website.com/config/cache

  4. At config page, you can migrate and config your application. https://website.com/config

  5. The site should work with no problem!

Contribution

Feel free to contribute to the project. Make sure to credit me :)

License

GNU GENERAL PUBLIC LICENSE

About

A single-page website built with Laravel framework

Resources

License

Stars

Watchers

Forks