2019-04-23 12:44:37 -04:00
---
id: tutorial-create-new-site
title: Create a New Site
---
2019-05-31 11:47:05 -04:00
In this section, we'll get our Docusaurus site up and running for local development. The process only takes a few minutes.
2019-04-23 12:44:37 -04:00
2019-04-23 14:36:51 -04:00
< img alt = "Docusaurus browser" src = "/img/undraw_docusaurus_browser.svg" class = "docImage" / >
2019-04-23 12:44:37 -04:00
## Scaffold the Site
2019-07-26 21:52:25 -04:00
1. `cd` to the directory of your local repository.
```sh
cd docusaurus-tutorial
```
2. Execute the `docusaurus-init` command in your terminal.
2019-04-23 12:44:37 -04:00
2019-04-29 12:51:42 -04:00
```sh
docusaurus-init
```
2019-05-16 22:17:47 -04:00
> The `Linking dependencies...` step might take a while, but it will finish eventually.
2019-05-31 11:47:05 -04:00
The following contents will be created in your current directory. Some example documentation pages (under `docs` ) and blog posts (under `website/blog` ) are included.
2019-04-23 12:44:37 -04:00
```sh
├── Dockerfile
├── docker-compose.yml
2019-04-28 01:01:09 -04:00
├── docs
2019-04-23 12:44:37 -04:00
│ ├── doc1.md
│ ├── doc2.md
│ ├── doc3.md
│ ├── exampledoc4.md
│ └── exampledoc5.md
└── website
├── README.md
2019-04-28 01:01:09 -04:00
├── blog
2019-04-23 12:44:37 -04:00
│ ├── 2016-03-11-blog-post.md
│ ├── 2017-04-10-blog-post-two.md
│ ├── 2017-09-25-testing-rss.md
│ ├── 2017-09-26-adding-rss.md
│ └── 2017-10-24-new-version-1.0.0.md
├── core
│ └── Footer.js
├── package.json
├── pages
│ └── en
│ ├── help.js
│ ├── index.js
│ └── users.js
├── sidebars.json
├── siteConfig.js
├── static
│ ├── css
│ │ └── custom.css
│ └── img
│ ├── docusaurus.svg
│ ├── favicon
│ │ └── favicon.ico
│ ├── favicon.png
│ └── oss_logo.png
└── yarn.lock
```
2019-07-27 18:03:38 -04:00
3. Run `cd website` to go into the `website` directory.
4. Run `npm start` or `yarn start` .
2019-04-23 12:44:37 -04:00
2019-07-29 01:12:22 -04:00
A browser window will open up at http://localhost:3000.
2019-04-23 12:44:37 -04:00
2019-05-31 11:47:05 -04:00
Congratulations, you have just made your first Docusaurus site! Click around the pages to get a feel for it.