Skip to content

A simple demo employee directory using Node, Express and Postgres

Notifications You must be signed in to change notification settings

tamzidcs/EmployeeDirectory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Employee Directory

How to install and run:

Requirements:

  1. Node
  2. Express
  3. React
  4. Postgres

Server:

  1. Create a new postgres database called employee_directory.

       "create database employee_directory"
  2. To import the db Run(from PostgreSQL\14\bin> folder):

       "./psql -U username -d employee_directory -f employee_directory.sql" 

    employee_directory.sql file is in employee_directory folder under the root dir.

    Replace username with appropriate database username.

  3. Configure the db:

    • Replace with proper username, host, database and password in "db.js" file
    const pool = new Pool({
        user: 'postgres',
        host: 'localhost',
        database: 'employee_directory',
        password: 'your_password',
        port: 5432,
    })
File is located in Employee_Directory/server/database folder.
  1. Inside server folder Run:
       npm install
  2. Run:
      npm start

Client:

  1. Inside the client folder Run:
  npm install
  1. Run:
 npm start

How to use:

Read the features.txt file.

About

A simple demo employee directory using Node, Express and Postgres

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published