Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 2.22 KB

README.md

File metadata and controls

65 lines (41 loc) · 2.22 KB

ChineseDialectManager

The ChineseDialectManager is a web application that serves as a Chinese dialect management system. It allows users to manage and organize information related to various Chinese dialects.

Table of Contents

Features

  • Dictionaries Management: Users can create and edit dictionary information using the Django Admin interface.
  • IPA Converter: The system supports an IPA converter that allows users to input pronunciation in the International Phonetic Alphabet (IPA) format.
  • CSV Import-Export: The system supports importing and exporting dictionary data using CSV files. Users can import the dictionary's vocabulary and IPA conversion rules for easy data management.

Requirements

Before the installation , ensure you have the following installed:

  • Docker Version
  • Docker Compose Version

Deployment Guide

To deploy the ChineseDialectManager using Docker and Docker Compose, follow the steps below:

  1. Clone the repository:
git clone https://github.com/danghoangnhan/ChineseDialectManager.git
cd IPADictionaryAPI
  1. Create a prod.env file in the envs directory. Update the environment variables with your desired configuration:
# .env file

# Database configuration
MYSQL_ROOT_PASSWORD=your-mysql-root-password
MYSQL_DATABASE=your-mysql-db-name
MYSQL_USER=your-mysql-user
MYSQL_PASSWORD=your-mysql-password
  1. Start the services (Django application and MySQL database):
docker-compose up -d
  1. Once the services are up and running, open your web browser and go to http://127.0.0.1:8002/admin/ to access the Django Admin interface.

  2. Log in using the superuser account created during installation.

  3. Use the Django Admin interface to manage Chinese dialect data, including adding, editing, and deleting dialect information.

  4. Customize the application as needed for your specific use case.

sudo docker exec -i 6b968d5ae8af mysqldump -uroot -pdictionary dictionary > backup.sql