/test

Primary LanguagePythonApache License 2.0Apache-2.0

Test task

Concept list


Description

This is a repository for creating a simple 'Contact Book' application for a test task for ALAS d.o.o.

License

Docker command

  • Terminal :
Go to the root folder where docker-compose is located and this command will make sure that the application starts successfully.
docker-compose up --build -d
This command will open logs so that background execution can be monitored.
docker container logs -f DjangoTest
If it is necessary to call some of the django-admin commands, this can be done with the accompanying command.
docker exec -it DjangoTest /bin/bash

Usage

Admin

login as admin

Username: admin1
Password: mypassword1

Register

If we try to access one of the endpoints we will only see a link that requires logging in by clicking on it, we get a login form where we need to authenticate. If we do not have an account, there is a link for registration below.

Login

After successfully creating an account, you are ready to log in and perform the first actions in the application (Contact Book).

Add contact

To create a contact, it is necessary to fill in the fields and add a contact by pressing the button.

List of contacts

To view your contact list, tap contacts in the navigation bar and a contact information tab will be displayed.

Filters

Above the contact card is an option to filter the contact by date, this option will sort your contacts from younger to older.

Update-contact

In order to access the section for changing contacts, you need to press the contacts in the navigation bar, in the tab of the contact you want to change, there is an inscription 'changes'.

Note: Gender is the default value.

Delete

To access the section to delete a contact open the contact list in the contact card there is a delete option that will permanently delete your contact.

Note: This function will set the active field to false, thus enabling the contact not to be displayed.

Home

Pressing home will return to your home page.

Contact