Social network, build with Laravel 8, that implements main functionalities such as: -creating/editing/deleting posts with many images -comment posts -add friends -block users -tag users on comments and posts -set private account -archive posts -save posts
- Create post
- Search
- Laravel 8
- PHP 7.4 -Javascript
- CSS
- HTML
- Clone the repo
git clone https://github.com/Skebard/Social-Network-Laravel.git
- Install composer dependencies
composer install
- Install NPM dependencies
npm install
- Create a copy of your .env file
cp .env.example .env
4.Set up your database credentials in the .env file.
DB_CONNECTION=mysql
DB_HOST=yourHost
DB_PORT=3306
DB_DATABASE=yourDatabaseName
DB_USERNAME=yourUsername
DB_PASSWORD=yourPassword
- Generate an app encryption key
php artisan key:generate
- Create an empty database. Make sure that the name in the .env file corresponds with the created database. 7.Migrate the database
php artisan migrate
- You can as well seed the database. When seeding you can see some errors due to the relationships between tables
php artisan db:seed
8.If you want to run a specific seeder use the following command changing UserSeeder for your desired seeder
php artisan db:seed --class=UserSeeder
- Run the server. You can use artisan like this:
php artisan serve
- Finally comment that when uploading files you might encounter problems if you php.info is not well configured.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request