A simple social networking system that makes use of PHP ( learning project ) .
Install the Heroku Toolbelt.
$ git clone https://github.com/mahbubme/Social-Network.git # or clone your own fork
$ cd Social-Network
$ heroku create
$ git push heroku master
$ heroku open
or
Deploy to a web server
-
Download the repository
-
Extract the downloaded file
-
Inside the main directory there is a folder named 'src'. You should upload 'src' directory's files to the server.
Before running the application you have to follow the instructions given here:
- You need to add the database information in the following file
/includes/connection.php
-
Download the empty database file and import it to the database which you have created for this project.
-
Change the default admin email by adding your email to get the notification about new user registration. File location is:
/user_insert.php
line 51
-
You should change the site URL in the email templates, see the '/templates/email/' folder.
-
To see the admin panel change a user_role to 'admin' from the database 'users' table. After the project link add '/admin'. It will prompt you to login as a admin by using the email and password who has the 'admin' user role.
http://example.com/admin/