These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
pnpm installStart a development server:
pnpm run dev
# or start the server and open the app in a new browser tab
pnpm run dev -- --openTo create a production version of your app:
pnpm run buildYou can preview the production build with npm run preview.
- SvelteKit - Framework
- TailwindCSS - CSS
- TypeScript
- shadcn-svelte - UI components
- lucide-svelte - Icons
- After installation, duplicate the ".env.example" file and rename it to ".env".
- Please don't add new libraries without discussing it with the team first.
- Please don't make unnecessary changes in the
lib/components/uidirectory. That directory is being used by shadcn-svelte. - If you want to create reusable components use the
lib/components/reusabledirectory. - The pages for the manager front of the web app are in the
src/routes/(app)directory, similarlysrc/routes/(pages)is used for pages that are accessible to all, andsrc/routes/(auth)for authentication-related pages. - Only
+page.svelte/tsor+layout.svelte/tsfiles should be created inside the/routesdirectory, if the page is getting too big, create a directory insidesrc/lib/pages/and then import those files in the main+page.svelteor+layout.sveltefile. - Please use
<script lang="ts">instead of<script>in svelte files. - Please refrain from adding global styles.
- Types should be added in the
src/lib/typesdirectory. - If the same styles are being used by multiple dom elements inside a single file and the class string is getting too long, use svelte-style-tag and use
@applyfor adding tailwind classes.