/Management-users

This application about users and group users. You can add, edit and delete them.

Primary LanguageJavaScript

Project with Django API and React App 🎉 🎊 🌞

Brief description

A simple integration between a Django API and a React App.

This project consists of two internal projects:

  • backend: the Django project containing the REST API along with all the backend code;
  • frontend: the React project with all the Node dependencies, settings and things related to the frontend.

Run it locally the Django project.

Create a Python virtual environment to isolate the projects:

python3 -m venv venv

If you have bugs, is exactly not success with first attempt, then input in terminal next command:

pip install --upgrade virtualenv

and once again

python3 -m venv venv

Then, activate it:

source venv/bin/activate

cd into the venv and clone project in your local machine from GitHub:

git clone https://github.com/VitaliiKalyta96/tt_test

Running the Django project(backend)

Open terminal and run next command:

sudo docker-compose up --build
sudo docker-compose up

Access the address http://localhost:8000/api/users/ or http://localhost:8000/api/group_users/ and check if the API is up.

Running the React project(frontend)

After load projects you have see next picture in your screen the browser.

Screenshot from 2022-01-26 01-15-53

First, cd the frontend/ directory and run next command:

sudo docker-compose up --build
sudo docker-compose up
.