A Test Task for VNV Solutions
Welcome to the Users and Groups Django Project, a web application designed to manage users and groups. This project allows you to effortlessly create, update, and delete users and groups. Additionally, it comes equipped with some important features to ensure data integrity and consistency.
- Python 3 must be installed
- Create .evn using .env.sample
- Specify
DB_TYPE=sqlite
inside .env to be able to run localy - Run these commands:
git clone https://github.com/eduardhabryd/vnv_test_task.git
cd vnv_test_task
python -m venv venv
source venv/bin/activate # or venv\Scripts\activate in Windows
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver
To run the project using Docker, follow these steps:
-
Clone and open folder in terminal:
git clone https://github.com/eduardhabryd/vnv_test_task.git cd vnv_test_task
-
Install Docker if it's not already installed. You can download it here
-
Create a .env file using .env.sample and specify
DB_TYPE=postgres
inside the .env to run the project with Docker. -
Run the following command to build and start the Docker containers:
docker-compose up --build
The Users and Groups Django Project provides the following endpoints for managing users and groups:
-
Users:
- users/create: Create a new user.
- users//update: Update user information.
- users//delete: Delete a user.
-
Groups:
- groups/create: Create a new group.
- groups//update: Update group information.
- groups//delete: Delete a group.
The project enforces data integrity by preventing the deletion of a group that contains users. This ensures that your data remains consistent and accurate.
Here are some visual representations of the project in action:
Explore the Users and Groups Django Project, and simplify your user and group management needs today! Feel free to contribute, report issues, or suggest enhancements to make it even better.