/partchat

Structured motorcycle forum

Primary LanguageTypeScript

Part Chat

Continuous Deployment

Pipelines

There is one continuous deployment GitHub workflow. It runs on all pushes, deploys to a staging environment where it runs the end-2-end tests and if they pass it deploys to prod (only if main branch).

The setup-node action is used to cache node dependencies. A cache is also created for the playwright binaries; it uses the playwright version in the key to ensure it is updated when the playwright version changes.

Continuous Deploy Workflow

End-2-End Tests

End-2-end tests use Playwright and should test all nominal flows.

Database

The data is persisted in a SQLite database using the Prisma ORM.

Entity Relationship Diagram

REST Resources

The REST API has these resources:

  • Motorcycle
  • Diagram
  • Diagram / PartReference
  • Part
  • Comment

Authentication/Authorisation

Responsive Layouts

Comment Editor

Dev Environment

  1. Install dependencies:

    npm install
    
  2. Run the backend:

    cd backend
    npm run dbpush
    npm run dbseed
    npm run dev
    
  3. Run the frontend:

    cd frontend
    npm run dev