Welcome to the Svelte Flow Learning Project! This project is designed to help you learn both Svelte and the Svelte Flow library. Below you will find an overview of the project, setup instructions, and resources to help you get started.
This project aims to provide a hands-on learning experience with Svelte and the Svelte Flow library. Svelte is a modern JavaScript framework for building user interfaces. Svelte Flow is a library for creating flow graphs in Svelte applications.
The project structure is as follows:
svelte-flow/
├── .gitignore
├── .npmrc
├── .prettierignore
├── .prettierrc
├── LICENSE
├── package-lock.json
├── package.json
├── README.md
├── svelte.config.js
├── tsconfig.json
├── vite.config.ts
├── src/
│ ├── app.d.ts
│ ├── app.html
│ ├── lib/
│ │ ├── FlowComponent.svelte
│ │ └── index.ts
│ └── routes/
│ └── +page.svelte
└── static/
└── favicon.png
Everything you need to build a Svelte project, powered by sv
.
If you're it was already done. Congrats!
# create a new project in the current directory
npx sv create
# create a new project in my-app
npx sv create my-app
Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
To get started with this project, follow these steps:
Clone the repository:
git clone https://github.com/DominikKowalczyk/svelte-flow.git
cd svelte-flow
Install dependencies:
npm install
Run the development server:
npm run dev
Open your browser:
Navigate to http://localhost:5000
to see the application in action.
This project includes examples and exercises to help you learn Svelte and Svelte Flow. Explore the src/components
and src/stores
directories to see how components and state management are implemented.
Here are some resources to help you learn more about Svelte and Svelte Flow:
Contributions are welcome! If you have any suggestions or improvements, please create an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Happy coding!