Skip to content

Pirate-Emperor/QuillAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuillAI

QuillAI is an innovative project inspired by the functionality of telegra.ph, focusing on content moderation and enhanced search capabilities. The goal of this repository is to explore full-stack development utilizing FastAPI for the backend and React for the frontend, all while integrating MongoDB for data storage.

This project is a learning endeavor aimed at addressing common issues in content management systems by leveraging generative AI for assistance and improvement.

Table of Contents

Requirements

Backend

  • Python: Minimal version ^3.10
  • Poetry: Dependency management tool
  • FastAPI: Async API backend (^0.111.0)
  • fastapi-cors: For HTTP operations (^0.0.6)
  • Motor: Async MongoDB driver (^3.4.0)
  • Faker: Generate test data (^25.2.0)
  • NLTK: Natural Language Toolkit for moderation data (^3.8.1)
  • Pandas: Data processing library (^2.2.2)
  • Better Profanity: Library for content moderation (^0.7.0)

Frontend

  • Node.js: To install all frontend dependencies
  • Axios: For HTTP requests (^1.6.8)
  • React: Base front-end framework (^18.3.1)
  • React-DOM: For rendering DOM elements (^18.3.1)
  • React Router DOM: For managing front-end routes (^6.23.1)
  • React Scripts: Project tools (^5.0.1)
  • Snyk: Security testing tool for code (^1.1291.0)

Installation and Usage

Backend

  1. Clone the repository:

    git clone https://github.com/Pirate-Emperor/QuillAI.git
    cd QuillAI
  2. Install Poetry for Python dependencies:

    pip install poetry
  3. Install Python dependencies:

    poetry install
  4. Run the backend using Uvicorn in a Poetry shell:

    poetry shell
    py backend/main.py

Frontend

  1. Navigate to the frontend directory:

    cd frontend
  2. Install React/JS dependencies:

    npm install
  3. Compile styles from Sass to CSS:

    npm run compile:sass
  4. Run the React frontend (as a separate server):

    npm start

Note: It is advisable to start with the frontend, followed by the backend, to ensure smooth integration.

Development Practices

For clarity and convenience, tasks and reminders are documented directly in the code via TODO comments. While the code may not adhere to the highest standards, it is functional and serves its purpose effectively. Continuous improvement is a priority.

Contributing

Feel free to fork the repository, make changes, and submit pull requests. Contributions are welcome!

License

This project is licensed under the Pirate-Emperor License. See the LICENSE file for details.

Author

Pirate-Emperor

Twitter Discord LinkedIn

Reddit Medium


About

QuillAI is a full-stack project inspired by telegra.ph, focusing on content moderation and search capabilities. Built with FastAPI, React, and MongoDB, it aims to enhance user experience by leveraging generative AI for improved functionality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors