Skip to content

UriMiranda/employeesmanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employees Manager

System requirements

Requirement Version
Python > 3.*
Django 2..

Getting Started

First clone this repository:

git clone https://github.com/UriMiranda/employeesmanager.git && cd employeesmanger/

Then install project requirements:

pip3 install -r requirements.txt

Run migrations:

python3 manage.py migrate

Load departament and admin data:

python3 manage.py loaddata departaments admin --database=default

Run project

Run server:

python3 manage.py runserver

Access admin: http://loacalhost:8000/admin

User Password
admin test

API

Departaments ID
T.I. 1
Financeiro 2
Vendas 3
RH 4

Listing all employees

GET http://localhost:8000/employees

Create a employee

POST http://localhost:8000/employees/store

BODY:

    {
        "name": "Test employee",
        "email": "test@test.com",
        "departament": 1
    }

Delete a employee

GET http://localhost:8000/employees/delete/<id:int>

Run tests

python3 manage.py test employees

About

Project to manager Magazine Luiza employees

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages