A modern web application built with SvelteKit for managing resources, users, programs, and events.
Install dependencies:
pnpm install
# or if using npm
npm install
Set up your environment variables: ```bash
cp .env.example .env
DATABASE_URL="postgresql://username:password@localhost:5432/pack_db"
3. Set up the database:
```bash
# Create and apply migrations
pnpm prisma migrate dev
# or
npx prisma migrate dev
pnpm dev
# or
npm run dev
The application will be available at http://localhost:5173
my-svelte-app/
├── src/
│ ├── lib/ # Shared components and utilities
│ ├── routes/ # SvelteKit routes and API endpoints
│ └── app.css # Global styles
├── static/ # Static assets
├── prisma/ # Database schema and migrations
├── .env.example # Example environment variables
├── .env # Environment variables
├── package.json # Project metadata and dependencies
└── README.md # Project documentation
All API endpoints are located in src/routes/api/
following SvelteKit's routing conventions:
/api/resources
- List all resources/api/resources
- Create a new resource/api/resources/[id]
- Get a specific resource# Run tests
pnpm test
# or
npm run test
# Build the application
pnpm build
# or
npm run build
# Preview the production build
pnpm preview
# or
npm run preview