Skip to content

Prototype of a social network allows posting, liking, commenting, friendship with other users. (JavaScript, React, PHP, Yii2)

Notifications You must be signed in to change notification settings

marharita08/Social-Network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social-Network

This repository contains the code for a prototype of a social network web application. The backend of the application is built using the Yii2 framework, while the frontend is built using React. The database used is PostgreSQL.

Features

The application provides the following features:

  • User authentication and registration
  • Posting, liking, and commenting on posts
  • Adding other users as friends
  • Searching for users in the system
  • Customizing own profile

Technologies Used

  • PHP
  • Yii2
  • JavaScript
  • React
  • PostgreSQL

Prerequisites

Before running the application, make sure you have the following installed:

  • Node.js
  • PHP
  • Composer
  • PostgreSQL

Installation

  1. Clone this repository: git clone https://github.com/marharita08/Social-Network.

  2. To install the required libraries, simply execute the following files:

    • install_api.cmd
    • install_front.cmd
  3. Before running the application, you need to add a .env file to the front folder with the following properties:

    Key Value
    REACT_APP_API_URL API url
  4. Create database for the application. Configure the database connection in the api/config/db.php file. Provide the appropriate credentials for created database.

  5. Create the required tables using init.sql.

  6. Start the backend by running run_api.cmd.

  7. Start the frontend by running run_front.cmd.

  8. Open your web browser and visit http://localhost:3000 to access the Social Network application.

About

Prototype of a social network allows posting, liking, commenting, friendship with other users. (JavaScript, React, PHP, Yii2)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published