Skip to content

adhamhaddad/Linker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linker

Description

This is a Social-Network platform called Linker that simulates Facebook and LinkedIn.

Dependencies

  • Node v14.15.1 (LTS) or more recent. While older versions can work it is advisable to keep node to latest LTS version

  • npm 6.14.8 (LTS) or more recent, Yarn can work but was not tested for this project

Installation

Database setup

  1. Open postgres terminal with: psql postgres

1- CREATE DATABASE network_dev;

2- CREATE ROLE admin WITH PASSWORD 'admin123';

3- ALTER ROLE admin WITH SUPERUSER CREATEROLE CREATEDB LOGIN;

4- GRANT ALL PRIVILEGES ON DATABASE network_dev TO admin;

  1. Second to install the node_modules run npm install or yarn. After installation is done start the api in dev mode with npm run dev or yarn dev.

  2. Third without closing the terminal in step 2, navigate to the frontend cd frontend to intall the node_modules npm install or yarn. After installation is done start the frontend server with npm run start or yarn start.

Note: open Linker/frontend/src/utils/api-urls.js

Unit Tests:

No Unit test available now.

Built With

  • React - Single Page Application Library
  • Node - Javascript Runtime
  • Express - Javascript API Framework
  • PostgreSQL - Open Source Relational Database