The important files/directories are as follows:
/ ├── backend/ ├── frontend/ ├── nginx/ ├── tools/ ├── docker-compose.dev.yml └── docker-compose.prod.yml
backend/ directory contains backend code. See below.
frontend/ directory contains frontend code. See below.
docker-compose.dev.yml file contains Docker Compose configuration to run a development environment.
Once we run the command
docker-compose -f docker-compose.dev.yml up, compose runs backend API and frontend development containers.
docker-compose.prod.yml file contains Docker Compose configuration to run a production environment.
We adopted the three tier architecture. Once we run the command
docker-compose -f docker-compose.prod.yml up, compose builds frontend and runs DBMS, backend API and web server containers.
nginx directory contains a NGINX configuration file and Docker container. They are used only in
tools directory contains some shell scripts. They are used for CI, CD and so on.
Also, there are directories and files contain doccano v0.x codes. In the future, they will be integrated into the current code or removed:
/ ├── backend/ ├── └── server/
The directory structure of the backend follows Django one. The important directories are as follows:
/ ├── backend/ ├── ├── api/ ├── ├── app/ └── └── authentification/
backend/api directory contains backend API application. We use Django Rest Framework to implement the API.
If you want to add new API, change the contents of this directory.
backend/app directory contains Django project settings. See Writing your first Django app, part 1.
backend/authentification directory contains authentification application. It is mainly used for user signup.