Git Product home page Git Product logo

django-employee-app's Introduction

Django Employee APP

Employee Management application written in Pyhon (Django).

Components:

  • admin panel to manage employees' data
  • API to list, add and remove employees

Note: to run the app using Docker, head over README-docker.md

Build Status codebeat badge codecov Dependency Status


Pre-requisites:

  • python3 (v3.5)
  • python-pip3 (v9.0.1)

Install dependencies

pip3 install -r requirements.txt
pip3 install -r requirements-test.txt

Go to employeemanager directory

Before running any of the following commands, you should cd into employeemanager directory:

cd employeemanager

Run migrations

python3 manage.py migrate

Create superuser with privileged access

python3 manage.py createsuperuser

Test

coverage run --source='.' employeemanager/manage.py test staff.tests

Code coverage report

Note: Run this command only after running the test suite with the command above.

coverage html
# the report will be located at `htmlcov/index.html`

Start app

python3 manage.py runserver localhost:8000

API usage

To interact with the API, log in at http://localhost:8000/staff/api-auth/ with the superuser created before. After log in, you might be redirected to an interactive interface.

Admin

Head over http://localhost:8000/staff/admin/ to access the admin.

django-employee-app's People

Contributors

marioluan avatar

Watchers

James Cloos avatar

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.