CMSTask is a simple Content Management System (CMS) built with Flask and SQLite. It allows users to manage words and phrases efficiently. The system supports loading initial data from a JSON file, viewing and searching words, editing their details, and deleting them.
- Load Initial Data: Automatically loads words and phrases from a JSON file if the database is empty.
- Search and Filter: Provides filtering options to search words and phrases by keywords.
- Edit Words and Phrases: Enables users to update word details, translations, and example sentences.
- Delete Words and Phrases: Allows users to remove any word or phrase from the database.
-
Clone the repository:
git clone https://github.com/bachkaaaaa/CMSTask.git cd CMSTask -
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Create the database: Open the Flask shell and run the following commands to initialize the database:
flask shell
Inside the Flask shell, execute:
from app import db db.create_all()
-
Start the application:
python3 run.py
-
Open your web browser and visit:
http://127.0.0.1:5000Enjoy managing your words and phrases with CMSTask!