Skip to content

vitorpvcampos/comp-emp

Repository files navigation

comp-emp

Project developed for technical challenge

Django CI Updates Python 3.9.0 Django 3.1.3 GitHub codecov

This project was developed as a requirement of a selective process for a vacancy as a Backend Developer.

The objective was to implement a system to manage companies and its employees, using any Python web framework (in this case, I used Django) and a GraphQL API.

As differentials:

  • CPF and CNPJ validation for employees and companies
  • Tests
  • Containerized Docker application

How to run the project?

Cloning the repository and creating the .env file

Supposing you have git and python >= 3.9.0 installed (not tested on older versions):

git clone https://github.com/vitorpvcampos/comp-emp.git
cd comp-emp
cp contrib/env-sample .env
pip install --upgrade pip
pip install pipenv
pipenv install --dev

Using Docker with Docker Compose and running the migrations:

docker-compose build
docker-compose up -d
docker-compose run app python manage.py migrate
docker-compose run app python manage.py createsuperuser

PEP8 lint

pipenv run flake8

Testing with pytest

pipenv run pytest --cov=compemp
Work environment

The project was developed using an iMac Pro (via OpenCore 0.6.3) running macOS Big Sur version 11.0.1 and the IDE PyCharm Professional 2020.2.3. The implementation was also tested on the Linux distribution POP!_OS 20.10 (running on the same hardware), with the same IDE.

Bootstrap logo

About

Project developed for technical challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published