API service for QuestionIt.space
This is public API of QuestionIt.space. Please see bootstrap to access all projects.
- Nest.js 8
- TypeORM 0.2
- PostgreSQL 14
- Redis 6
- twitter-api-v2 1.11
- Node 14+
src: TypeScript code rootapp: Main application modulebootstraps: Files that can start the application (or a part of it)database: Database-related files (entities, tyes, migrations)entities: TypeORM entitiesenums: Enum types related to entitiesinterfaces: Interfaces related to entitiesmigrations: TypeORM migration files
features: Modules that provides REST-ful API (with Nest controllers). Each directory refers to a specific part of the public application API.shared: All the things that can be imported by the main application or its services, without being directly related to a database entityconfig: App configfilters: Nest filtersguards: Nest guards applicables to controllerslogger: Loggers applicables to Nest or TypeORMmanagers: Worker management or request user wrappingmiddlewares: Nest middlewaresmodules: Global module where each of its services can be imported anywhere. Helps shared things like notifications, errors or Twitter handling to be shared across the app.pipes: Nest validation pipesqueues: Bull-powered queues; only used to handle CRON jobsstrategies: Authentication strategiesutils: Shared utils about everything: string, regex, query parsing and moreworkers: Files that should run in a dedicatedworker_thread
static:serve-staticconfiguration
data: JSON-files meant to store basic datauploads: Structure for POST file upload and file processing
See bootstrap to learn how service can be started.
For endpoint documentation, see API docs.
