architecture
This project is a line-of-business app with a front-end, api middle tier and a postgres database back-end. **The sole purpose is to create data in the front-end and to deliver it to the back-end and vice-versa.**
Install / Use
npx skills add gimzani/SwiftFollowupInstalls into whichever agent you are using.
.clinerules
Cline rules
Quality Score
Category
Data & AnalyticsSupported Platforms
Skill content
View source on GitHubProject Architecture
This project is a line-of-business app with a front-end, api middle tier and a postgres database back-end.
The sole purpose is to create data in the front-end and to deliver it to the back-end and vice-versa.
Technologies
- HTML/CSS/JavaScript
- Fastify - Api
- JSON Schema - Fastify Validation
- Postgres - Database
- VueJS - Frontend UI
- Vitest - Testing
Project File Structure:
The project will have the api and client folder for the main deliverables, and a packages folder for any additional custom npm modules used in the project.
The api project will be a simple yet powerful restApi that uses a services architecture.
- The
index.jsfile will set up the server and serve the API routes. - The
router.jsfile will aggregate the routes from the files in the/routesfolder using the fastify-plugin architecture (where each file in/routesis a fastify plugin defining CRUD routes) - The
/databasefolder will contain theschema.sqlfile, which will define the creation of the postgres database schema. - IMPORTANT: THE
/database/schema.sqlFILE IS THE SOURCE OF TRUTH FOR ALL DATA MODEL STRUCTURES! - The
/database/seed.sqlhas all of the data required for a minimal database setup - (users, permissions, settings, etc.). - Each 'fastify plugin' will exist in a module with an 'Api' and a 'Service' file.
- The API file has a naming convetion based on the parent folder (e.g.:
bizcards/bizcardsApi.jsandbizcards/bizcardsService.js)
- The API file has a naming convetion based on the parent folder (e.g.:
File Structure Example:
.
├─ api
│ ├─ database
│ │ ├─ schema.sql
│ │ └─ seed.sql
│ ├─ modules
│ │ ├─ bizcards
│ │ │ ├─ bizcardsApi.js
│ │ │ └─ bizcardsService.js
│ │ ├─ useraccounts
│ │ │ ├─ useraccountsApi.js
│ │ │ └─ useraccountsService.js
│ │ └─ (...additional modules)
│ ├─ schema
│ │ └─ (...fastify schema files)
│ ├─ services
│ │ └─ (...service files)
│ ├─ utils
│ │ └─ (...utility files)
│ ├─ index.js
│ ├─ router.js
│ ├─ server.config.js
│ └─ package.json
├─ client
│ ├─ src
│ ├─ styles
│ └─ package.json
├─ packages
│ ├─ packageA
│ │ ├─ src
│ │ └─ package.json
│ └─ packageB
│ ├─ src
│ └─ package.json
└─ package.json
Related Skills
momen-cursurrules-prompt-file
40.6kCursor rules for building custom frontends with Momen.app as headless BaaS with GraphQL API, actionflows, AI agents, and Stripe integration.
semiotic-react-dataviz-cursorrules-prompt-file
40.6kCursor rules for Semiotic data visualization library with 30+ chart types, MCP server, and AI-assisted chart generation.
Agent-Reach
72.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
66.5kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Security Score
Audited on Invalid Date
