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.
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
- PHP
- Yii2
- JavaScript
- React
- PostgreSQL
Before running the application, make sure you have the following installed:
- Node.js
- PHP
- Composer
- PostgreSQL
-
Clone this repository:
git clone https://github.com/marharita08/Social-Network
. -
To install the required libraries, simply execute the following files:
install_api.cmd
install_front.cmd
-
Before running the application, you need to add a
.env
file to thefront
folder with the following properties:Key Value REACT_APP_API_URL API url -
Create database for the application. Configure the database connection in the
api/config/db.php
file. Provide the appropriate credentials for created database. -
Create the required tables using
init.sql
. -
Start the backend by running
run_api.cmd
. -
Start the frontend by running
run_front.cmd
. -
Open your web browser and visit
http://localhost:3000
to access the Social Network application.