johnkk84 / facebooc

Yet another Facebook clone written in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebooc

Proof-of-concept Facebook clone in C. The only dependency is SQLite3.

Prerequisites

OS: Ubuntu

Install following package:

  • build-essential
  • make
  • libsqlite3-dev
  • sqlite3
sudo apt-get update
sudo apt-get install -yq build-essential make libsqlite3-dev sqlite3

Note: When you launch a container using ubuntu image from the repository, it may not have sudoers installed. Also, you would be a root user inside the container. In such case, remove sudo and execute rest of the command.

Build

Using git, clone the repository with the URL above. Repository contains the source files written in C, along with a Makefile with targets such as "all", "run". Destination path should be /opt/facebooc. Run the following command to compile the source code.make all

cd facebooc
make all

Run

Launch app as bin/facebooc This will attach to port 16000

cd facebooc
bin/facebooc

Licensing

Facebooc is freely redistributable under the two-clause BSD License. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

About

Yet another Facebook clone written in C

License:Other


Languages

Language:C 78.6%Language:CSS 11.5%Language:HTML 8.7%Language:Makefile 1.1%Language:Dockerfile 0.2%