Code Monkey home page Code Monkey logo

employee-management's Introduction

Employee Management

A web APIs that helps to manage employees.

Heroku API

Employee Management link

Tools Used

Javascript : Language used.

NodeJS : server environment.

Express : used for building fast APIs.

Heroku : Deployment.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

TO setup the project on your local machine do the following Install Node

npm install node

Install Postgres

[Postgres](http://www.postgresqltutorial.com/install-postgresql/)

Clone the repo by running

git clone https://github.com/luc-tuyishime/Employee-management.git

Then install all the necessary dependencies

npm install

Database setup

Creata a .env file

Copy and Paste the DATABASE_URL

DATABASE_URL=postgres://[USERNAME]:[PASSWORD]@localhost/[DATABASE_NAME]

Deployment

  • URL = http://localhost:8000
  • PORT = 8000
  • NODE_ENV = production
  • DATABASE_URL =
  • PG_HOST = localhost
  • PG_USER = username
  • PG_DATABASE = management
  • PG_PASSWORD = secretpassword
  • PG_PORT = 5432

Run the application

npm start

Run tests

npm test

API ENDPOINTS

Ressource URL Methods Description
/ GET The index (welcome message)
/api/v2/employees POST Create an employee
/api/v2/users/register POST Register a manager
/api/v2/users/register POST Login a manager
api/v2/employee/:id PATCH Edit en employee
api/v2/employee/:id DELETE Delete an employee
api/v2/employees/:id/activate PATCH Activate an employee
api/v2/employees/:id/suspend PATCH Suspend an employee
api/v2/employees GET Get all employees
api/v2/employees/search?name=frank GET Search employee with Name

Contributor


License & copyright

Copyright (c) Jean luc Tuyishime, Software developer

employee-management's People

Contributors

luc-tuyishime avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar

Forkers

sengayire

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.