ToDo API application made in a team. The client side is written on React, the server side on Django REST Framework. In application has created user registration/authorization (JWT), user-profile-settings. The user can create a list of tasks, give them labels, delete, change and much more. Added OAuth 2.0 (Google). For storage using MySQL.
- TypeScript
- JavaScript
- React.js
- HTML / CSS
- Python
- Django
- Dajngo REST Framework
- MySQL
- Docker
- Swagger
Additional libraries are specified in the requirements.txt
file.
In this section, we will deploy the project on PC using Docker and Docker Compose.
Create a root directory on your computer, then open it in your code editor or terminal.
Next, write this command into the command line:
git clone https://github.com/S0fft/BeBetter-ToDo.git .
You will see the project files appear in your directory.
Afterwards, launch the already installed Docker Desktop. Next, while it is running, you can return to the editor or terminal and enter the following command in the terminal:
docker-compose up --build
This command "collects and runs all the code", allowing you to interact with the project through a browser.
Now the project is already running on your computer, and is available on port 8000. Go to this address to open it:
http://localhost:8000/
Thus, we have run the project locally on computer. The server will indicate which links are available to you.
To begin, install: Python | MySQL
Links are provided to the latest versions of the tools.
All the same, сreate a root directory on your computer, then open it in your code editor or terminal.
Next, write this command into the command line:
git clone https://github.com/S0fft/BeBetter-ToDo.git .
You will see the project files appear in your directory. After, continue to enter the following commands.
Create a virtual environment:
python -m venv .venv
And activate it:
.venv\Scripts\Activate
Next, install packages:
python.exe -m pip install --upgrade pip
pip install -r requirements.txt
Then, run server:
python manage.py runserver
These commands do the same thing as described above, only on UNIX systems.
Before this, the code must be modified as indicated in the note above!
python3 -m venv ../venv
source ../venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt
python manage.py runserver