ArtBox is an image-sharing social media website created with Laravel, React, and MariaDB.
It has the following features:
- Dynamic interface
- Authentication system (Login/Register)
- Posts (Full CRUD functionality)
- Masonry grid layout for posts
- Comments (Full CRUD functionality)
- Profile customization (profile picture, edit details)
- User profiles
- Authorization for resources
- Front and backend form validation
- Email notifications for new comments
You should have PHP and a SQL driver installed. If you wish to use PostgreSQL, you need to enable the PostgreSQL driver for PHP in php.ini
.
Windows
- Copy the
.env.example
and create your own.env
, filling in the database environment variables and theAPP_KEY
. You can generate an app key withphp artisan key:generate
in the project directory. - Install dependencies by first running
yarn
, thencomposer i
. - With your database set up, run
php artisan migrate
under the project directory. - Under the
public
directory, delete thestorage
folder. - Run
php artisan storage:link
and thestorage
folder should be recreated. - Run
npm run hot
to start the React frontend with hot-reloading. - Run
php artisan serve
to serve the Laravel backend. - For email functionality, run
php artisan queue:listen
. - Visit the site (
localhost:8000
by default). Telescope is also installed, so you can see things like requests by going tolocalhost:8000/telescope
.