https://github.com/dmitrenko-v/department_app
This is web application for managing departments and employees
https://github.com/dmitrenko-v/department_app
Last synced: 3 months ago
JSON representation
This is web application for managing departments and employees
- Host: GitHub
- URL: https://github.com/dmitrenko-v/department_app
- Owner: dmitrenko-v
- Created: 2021-11-15T16:09:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T10:09:12.000Z (8 months ago)
- Last Synced: 2024-09-12T21:25:40.367Z (8 months ago)
- Language: Python
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://coveralls.io/github/dmitrenko-v/department_app?branch=main)
# Department app
This is simple department web application for performing CRUD operations with database with employees and department
## Installation guide
1. Firstly, you need to install python. You can do it here: https://www.python.org/downloads/
2. Then, you need to install pip. Pip installation guide: https://pip.pypa.io/en/stable/installation/
3. It is strongly recommended to run this application in virtual environment. To create it, do the following steps:
- ```pip install virtualenv``` - installing package to create virtual environments
- ```virtualenv {name of the virtual environment}``` - creating virtual environment
Then, to perform further actions in created environment, type ```source {name of virtual environment}/bin/activate``` in the command line
4. The next step is set up the project environment. You can do it from command line in two ways
- ```pip install -r requirements.txt```
- ```python setup.py install```
## Usage guide
To run the application you must run "run.py" fileYou can perform CRUD operations through API(POST and PUT methods must include data in json format. Response is JSON) by following urls:
1. */api/departments*. Possible methods: POST, GET
2. */api/department/{id of department}*. Possible methods: POST, GET, PUT, DELETE
3. */api/employees*. Possible methods: POST, GET
4. */api/employee/{id of employee}*. Possible methods: POST, GET, PUT, DELETEAlso you can do same operations through */departments*, */employees*, */department/{id of department}*, */employee/{id of employee}* in browser.