This repository contains the source code for a SvelteKit-based project. It is designed to be a modern, scalable, and maintainable web application.
- SvelteKit: A powerful framework for building web applications.
- GraphQL: Integrated GraphQL support using
graphql,graphql-request, andgraphql-tag. - UI Components: Styled with
daisyuifor a consistent and responsive design. - Meta Management: Uses
svelte-meta-tagsfor SEO and meta tag management. - AWS Deployment: Configured with
@jill64/sveltekit-adapter-awsfor seamless deployment to AWS. - Development Tools: Includes
eslint,prettier, andtailwindcssplugins for linting and formatting.
Ensure you have the following installed:
- Node.js (v16 or later)
- npm (v8 or later)
-
Clone the repository:
git clone https://github.com/your-username/new.hufghani.dev.git cd new.hufghani.dev -
Install dependencies:
npm install
-
Start the development server:
bash npm run devThe application will be available at http://localhost:5173.
To create a production build: ``bash npm run build
Preview the production build locally:
## Testing
This project uses vitest and playwright for testing.
Run unit tests:
```bash
npm run test:unit
Run end-to-end tests:
npm run test:unitRun all tests:
npm run test:unitCheck for linting errors:
Format the codebase:
The project is deployed to AWS using @jill64/sveltekit-adapter-aws. Deployment configurations can be found in svelte.config.js.
This project is licensed under the MIT License. See the LICENSE file for details.
Built with ❤️ using SvelteKit. Hosted on AWS S3 and distributed via CloudFront.