Skip to content

AdnanTech

Programming tutorials

Menu
  • Python
  • PHP
    • Laravel
    • WordPress
  • Javascript
    • React JS
    • Node.js
    • Vue JS
  • Databases
    • MySQL
    • MongoDB
  • Mobile apps
    • Android
    • iOS
  • Tutorials
    • Ticketing system
    • Chat app
  • Blog
  • Projects
  • API
    • Social network API
  • Services
    • Hash Generator
    • World Clock
    • Word Counter
    • Currency Converter
    • Financial Ledger
    • Time Difference
    • Stopwatch & Timer
    • Google Maps
  • SAAS
    • Job Entry

Installation

by adnanafzal565Posted onOctober 3, 2024October 3, 2024

A social network API is created in Laravel that allows developers to get the basics of social network and then customize it as per they want. It also benefits if you are frontend developer, you do not have to worry about learning and creating all the backend for a social network.

In this Social Network, we also have an admin panel from where you can manage users, SMTP settings etc. We also have a chat system between user and admin so if user have any question, they can ask directly from admin.

Users will also be able to create friends, upload posts, like, comment and share on posts. While uploading a post, user can also mention their activities like Eating, Reading, Playing etc. User can also add attachments (image/video) with the post as well.

While liking the post, user can give a reaction as well. For example, like, love, angry, sad, laugh etc. Then on frontend, you can show relevant icons based on user’s reaction.

You can download the source code from here:

Download

After download, extract the files in your htdocs folder if you are using XAMPP/MAMP or www if you are using WAMP. After that, goto file “config/database.php” and set your database credentials.

1
2
3
4
5
6
7
8
9
10
11
'mysql' => [
    ...
 
    'host' => '127.0.0.1',
    'port' => '3306',
    'database' => 'social_network',
    'username' => 'root',
    'password' => '',
 
    ...
],

Then create a database named “social_network” in your phpMyAdmin.

After that, you need to rename the file “.env.example” to just “.env”.

Once the rename is done, you need to run the following commands at the root of your project:

(You can write any name, email or password of your choice for super admin while running 5th command)

1
2
3
4
5
6
1) COMPOSER_MEMORY_LIMIT=-1 composer update
2) php artisan key:generate
3) php artisan storage:link
4) php artisan migrate
5) name="Admin" email="admin@adnan-tech.com" password="admin" php artisan db:seed --class=DatabaseSeeder
6) php artisan serve

Once you have ran all the commands, you will be able to access the social network from:
http://localhost:8000

You can access your admin panel by accessing the following URL:

http://localhost:8000/admin

Make sure to use the credentials you have set on step 5 above.

That will work on your localhost, but if you want to deploy this on a live server, follow our guide to deploy a Laravel project on a live server.

Published by adnanafzal565

View all posts by adnanafzal565

Post navigation

Next Authentication

Recent Posts

  • SAAS in React + Laravel – Job Entry
  • Show selected images from input type file – React
  • Add dynamic rows in React
  • Soft Delete 🗑 – Node.js, MongoDB
  • 2 ways to loop through a number in React

Recent Comments

  1. canada pharmaceuticals online generic on PDF view in browser and export as file – PHP
  2. System on (no title)
  3. adnanafzal565 on (no title)
  4. adnanafzal565 on (no title)
  5. System on (no title)

Archives

  • May 2025
  • March 2025
  • February 2025
  • January 2025
  • November 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • November 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020

Categories

  • Android
  • Complete Projects
  • CSS
  • FFmpeg
  • Git
  • htaccess
  • HTML
  • iOS
  • Javascript
  • Laravel
  • Leap Motion Controller
  • MEVN
  • MongoDB
  • MySQL
  • Node.js
  • PHP
  • Python
  • React JS
  • Swift
  • Tips & Tricks
  • Uncategorized
  • Vue JS
  • WordPress
AdnanTech © All rights reserved. 2013 - 2025