Skip to content

Laravel + VueJS: projet pour la fin de la formation Dev&Go Epitech

License

Notifications You must be signed in to change notification settings

lipingZLP/my-hobbies

Repository files navigation

My Hobbies

Laravel + VueJS project for Dev&Go

Setup

Clone

git clone https://github.com/lipingZLP/my-hobbies.git
cd my-hobbies
cp .env.example .env
composer install

Generate a Laravel Application key

php artisan key:generate

Setup the database

Create a myhobbies database:

CREATE DATABASE IF NOT EXISTS `myhobbies`;

Modify the my-hobbies/.env file and set the following:

APP_NAME="My Hobbies"

DB_HOST=<mysql_server_address>
DB_DATABASE=myhobbies
DB_USERNAME=<mysql_username_eg_root>
DB_PASSWORD=<mysql_password_eg_root>

Run Laravel migrations:

php artisan migrate

Compile the frontend part

npm install
npm run dev

While developing, you can use:

npm run watch

Permission denied errors on storage

Directories within the storage and the bootstrap/cache should be writable by your web server or Laravel will not run.

Add an administrator

To have access to the admin page, you must:

  • Create a standard user using the registration page
  • Modify the database (table: users, column: is_admin)
UPDATE `users` SET is_admin = TRUE WHERE id = ?;

Create upload directories

The website stores uploaded avatars and hobbies photos.
Make sure you have create the following directories:

mkdir public/images/avatars
mkdir public/images/posts

About

Laravel + VueJS: projet pour la fin de la formation Dev&Go Epitech

Resources

License

Stars

Watchers

Forks

Packages

No packages published