Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.53 KB

File metadata and controls

52 lines (35 loc) · 1.53 KB

Artisyn.io Backend API

TABLE OF CONTENT

  1. Schema
  2. Response Format
  3. Controller Format
  4. Routing
  5. API Endpoints
  6. Documenting

Contributing

Clone the REPO

git clone https://github.com/artisyn-io/artisyn-api.git

Setup your Postgre credentials and update the DATABASE_URL env variable. Use a dedicated schema for local development rather than public to avoid drift with other apps sharing the same database.

pnpm install

This will run the setup script during postinstall, which ensures .env exists and generates the Prisma client.

To create or fully reinitialize the local development database, run:

pnpm initialize

initialize performs a forced Prisma reset for the local development database, reapplies migrations, and runs the configured seed.

Finally fire up the dev server

pnpm dev

Documenting

You are required to document every new feature, change, or addition made to the API. To update the documentation, follow these steps:

  • Visit the API Documentation.
  • Scroll to the bottom of the page and select Clone or Export.
  • Make the necessary changes to the cloned/exported version.
  • Export your updated version.
  • Replace the existing DOCUMENTATION.json file with your updated version.

This ensures the API documentation remains accurate and up to date with all changes.