2022-07-02 22:52:31 +02:00
|
|
|
---
|
|
|
|
title: Start the development environment
|
|
|
|
order: 50
|
|
|
|
---
|
|
|
|
|
|
|
|
FreeSewing provides a development environment to help you design and develop patterns.
|
|
|
|
|
|
|
|
There are two ways to run this development environment:
|
|
|
|
|
|
|
|
- [**Monorepo development**](#monorepo-development): Use this if you intend to contribute your work to FreeSewing
|
|
|
|
- [**Stand-alone development**](#stand-alone-development): Use this if you want to do your own thing, and not contribute to FreeSewing
|
|
|
|
|
|
|
|
## Monorepo development
|
|
|
|
|
|
|
|
Run `yarn lab` to start the development environment:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn lab
|
|
|
|
```
|
|
|
|
|
|
|
|
Then point your browser to http://localhost:8000
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::tip
|
2022-07-02 22:52:31 +02:00
|
|
|
### Adding a new design
|
|
|
|
This is all you need to work on existing designs. If you'd like to add a new design, run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn new design
|
|
|
|
```
|
|
|
|
|
2022-08-05 14:54:57 -05:00
|
|
|
Just make sure to re-start the lab afterwards with `yarn lab`
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2022-12-22 17:26:21 -08:00
|
|
|
## Stand-alone development
|
2022-07-02 22:52:31 +02:00
|
|
|
|
|
|
|
You will have a new folder that has the name you picked for your design.
|
2022-08-07 12:56:35 -07:00
|
|
|
If you chose `test`, you will have a folder named `test`.
|
|
|
|
If you chose `banana`, you'll have a folder named `banana`.
|
|
|
|
(Within this new folder, the `design` subfolder holds your design's configuration file and source code.
|
|
|
|
You can ignore all other subfolders and files; they are part of the development environment.)
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2022-08-07 12:56:35 -07:00
|
|
|
To start the development environment, enter the folder that was created
|
2023-05-04 19:16:07 -07:00
|
|
|
and run `yarn dev` (or `npm run dev` if you're using npm as a package manager).
|
2022-07-02 22:52:31 +02:00
|
|
|
|
|
|
|
Then open your browser and go to http://localhost:8000
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::tip
|
2022-07-02 22:52:31 +02:00
|
|
|
The development environment will watch for any changes you make to
|
2023-05-04 19:16:07 -07:00
|
|
|
the pattern's source code or configuration.
|
2022-07-02 22:52:31 +02:00
|
|
|
When you do, it will update automatically in your browser.
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::note
|
2022-07-02 22:52:31 +02:00
|
|
|
|
|
|
|
##### Yay, you're done!
|
|
|
|
|
2022-08-07 12:56:35 -07:00
|
|
|
All you have to do now is design your pattern.
|
2022-07-02 22:52:31 +02:00
|
|
|
Thankfully, we have a tutorial for that too:
|
|
|
|
|
|
|
|
- [Pattern design tutorial](/tutorials/pattern-design/): A step-by-step guide to designing your first pattern
|
|
|
|
|
2024-09-28 13:13:48 +02:00
|
|
|
:::
|