1. Install
  2. Project Structure

Install

Project Structure

SvelteShip takes advantage of advanced routing to provide a basic folder structure

  • /components/ - UI components for your application
  • /server/ - server side logic that should not be exposed to the front-end
  • /sql/ - database related sql scripts, functions and triggers
  • /api/ - api endpoints your application uses
  • /webhooks/ - webhook endpoints which listen for events from external sources.
  • /(app)/ - all code associated with your application will reside here
  • /(auth)/ - authentication pages for your app
  • /(marketing)/ - landing page for your application
        src
└─ lib
   ├─ components
   └─ server
   └─ sql
└─ routes
   ├─ api
      └─webhooks
   ├─ (app)
   ├─ (auth)
   └─ (marketing)