https://github.com/bachkaaaaa/cmstask
This is a simple Content Management System (CMS) built with Flask and SQLite that allows users to manage words and phrases. It supports loading initial data from a JSON file, viewing and searching words, editing their details, and deleting them.
https://github.com/bachkaaaaa/cmstask
cms flask python sqlite3
Last synced: 2 months ago
JSON representation
This is a simple Content Management System (CMS) built with Flask and SQLite that allows users to manage words and phrases. It supports loading initial data from a JSON file, viewing and searching words, editing their details, and deleting them.
- Host: GitHub
- URL: https://github.com/bachkaaaaa/cmstask
- Owner: bachkaaaaa
- Created: 2024-12-30T06:25:57.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-07T17:35:25.000Z (over 1 year ago)
- Last Synced: 2025-06-06T07:08:29.574Z (about 1 year ago)
- Topics: cms, flask, python, sqlite3
- Language: HTML
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CMSTask
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.
## Features
- **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.
## Installation
1. Clone the repository:
```bash
git clone https://github.com/bachkaaaaa/CMSTask.git
cd CMSTask
```
2. Create a virtual environment:
```bash
python3 -m venv venv
```
3. Activate the virtual environment:
- On Windows:
```bash
.\venv\Scripts\activate
```
- On macOS/Linux:
```bash
source venv/bin/activate
```
4. Install dependencies:
```bash
pip install -r requirements.txt
```
## Database Setup
1. **Create the database**:
Open the Flask shell and run the following commands to initialize the database:
```bash
flask shell
```
Inside the Flask shell, execute:
```python
from app import db
db.create_all()
```
## Usage
1. **Start the application**:
```bash
python3 run.py
```
2. Open your web browser and visit:
```
http://127.0.0.1:5000
```
Enjoy managing your words and phrases with CMSTask!