Code checker
❗Note: Project not supported❗
Test task for python developer role at Skyeng
Features • Tech stack • How To Use • Additional material • GitHub Pages
Features
- Registration new user
- Authorisation
- Uploading python files
- Checking user uploaded python files with flake8, scheduled check via celery
- Sending an email message to the user about the results of checking the files he has uploaded
- Creating a report for the user based on the inspection
Tech stack
How To Use
To clone and run this project, you'll need:
Local run use Docker
-
Firstly clone repo
git clone git@github.com:mrKazzila/python_dev_test_task.git
-
Prepare env with make
make prepare_env
-
Run docker compose with make
make docker_run
-
Stop docker compose with make
make docker_stop
Other useful local commands
-
Run tests
make test
-
Run linters & formatters
make test_linters
-
Reload docker
make docker_reload
Base deploy command
- Prepare you server
- Updating local packages:
sudo apt-get update && apt-get upgrade -y
- Recommended: Create a new user
adduser <username>
&usermod -aG sudo <username>
- Recommended: Copy SSH-key to server
- Recommended: Update sshd_config
- Install docker
- Install make
sudo apt-get install make
- Setup UFW
-
Prepare env with make
make prepare_env
-
Update the information in the .env files
-
Run docker compose prod with make
make docker_prod_run
-
Enter to django container
make django_container_enter
- Other useful prod commands
- Clean all
make docker_remove_all_force