Markdown Converter
Agent skill for markdown-converter
This document provides guidance for AI coding agents working on this project. It outlines the architecture, workflows, and conventions specific to this codebase to ensure productivity and alignment with project goals.
Sign in to like and favorite skills
This document provides guidance for AI coding agents working on this project. It outlines the architecture, workflows, and conventions specific to this codebase to ensure productivity and alignment with project goals.
This project implements an electronic government system leveraging Public Key Infrastructure (PKI). It consists of a backend built with Django and Django REST Framework (DRF) and a frontend built with React.
Backend:
backend/ directory.authentication: Handles user authentication and authorization.hoso: Manages document-related operations.social_auth: Integrates social login (Google, Facebook, etc.).backend/chinhquyendtPKI_djangov2/settings.py: Main Django settings.Frontend:
frontend/ directory.src/components/: Contains reusable React components.src/container/: Defines page-level components and templates.src/redux/: Manages global state using Redux.Static Files:
backend/static/frontend/public/ and frontend/src/assets/social_auth.Setup:
pip install -r backend/requirements.txt
CREATE USER <username> WITH PASSWORD '<password>'; CREATE DATABASE <dbname> OWNER <username>;
Run the Server:
python manage.py makemigrations python manage.py migrate python manage.py runserver
Create a Superuser:
python manage.py createsuperuser
Testing:
tests.py files within each app.python manage.py test
Setup:
npm install
Run the Development Server:
npm start
Build for Production:
npm run build
Backend:
utils.py.Frontend:
scss/.General:
Social Authentication:
backend/social_auth/.PDF Signing:
backend/signpdf.py.Pagination:
backend/hoso/paginator.py.Backend:
django-cors-headers: Handles CORS.djoser: Simplifies user authentication.django-x509: Manages PKI certificates.Frontend: