2022-07-02 22:52:31 +02:00
|
|
|
---
|
|
|
|
title: Setting up the development environment
|
|
|
|
order: 100
|
|
|
|
---
|
|
|
|
|
|
|
|
Open a terminal and enter the following command:
|
|
|
|
|
2022-10-04 23:36:08 +02:00
|
|
|
```sh
|
2022-10-09 23:47:32 +02:00
|
|
|
npx @freesewing/new-design@next
|
2022-07-02 22:52:31 +02:00
|
|
|
```
|
2022-10-09 23:47:32 +02:00
|
|
|
<Fixme compact>Remove `@next` suffix once v3 is in production</Fixme>
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2022-10-09 23:47:32 +02:00
|
|
|
You'll be asked some questions.
|
|
|
|
All the defaults will do, but here are the details:
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2022-10-09 23:47:32 +02:00
|
|
|
- *What template would you like to use?* — Pick the default: **Tutorial**
|
|
|
|
- *What package manager should we use?* — Pick the default: **npm**, unless you are certain you have **yarn** installed
|
2022-07-02 22:52:31 +02:00
|
|
|
|
|
|
|
After you've answered these questions, files will be copied, dependencies installed, and components downloaded.
|
|
|
|
|
|
|
|
<Note>
|
|
|
|
|
|
|
|
This will take a few minutes because we're loading some software for your development environment.
|
|
|
|
|
|
|
|
</Note>
|
|
|
|
|
2022-10-09 23:47:32 +02:00
|
|
|
When it's ready, enter the `tutorial` directory that was just created and run `npm run dev`:
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2022-10-04 23:36:08 +02:00
|
|
|
```sh
|
2022-10-09 23:47:32 +02:00
|
|
|
cd tutorial
|
2022-07-02 22:52:31 +02:00
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
|
2022-10-09 23:47:32 +02:00
|
|
|
Or if you chose to use yarn as package manager:
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2022-10-04 23:36:08 +02:00
|
|
|
```sh
|
2022-10-09 23:47:32 +02:00
|
|
|
cd tutorial
|
2022-08-20 18:08:01 -04:00
|
|
|
yarn dev
|
2022-07-02 22:52:31 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Now open your browser at http://localhost:8000
|
|
|
|
|
|
|
|
If all goes well, you should see this landing page:
|
|
|
|
|
|
|
|

|
|
|
|
|
2022-10-09 23:47:32 +02:00
|
|
|
## Notes
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2022-10-09 23:47:32 +02:00
|
|
|
### Need help?
|
2022-07-02 22:52:31 +02:00
|
|
|
|
2022-10-04 23:36:08 +02:00
|
|
|
If you run into any issues, [join our **#development-help** chat room on on
|
|
|
|
Discord](https://discord.freesewing.org/) and we'll figure it out together.
|