You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-17Lines changed: 30 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,44 +12,57 @@ This repository contains the following:
12
12
13
13
Strap yourself in! You can get started with this project on your local machine by following the instructions below, or you can [request a private instance on our website](https://strapi.io/demo)
14
14
15
-
##1. Clone Launchpad
15
+
### Prerequisites
16
16
17
-
To infinity and beyond! 🚀 Before you take off, clone the repo and set it up:
17
+
-**Node.js** v18 or higher
18
+
-**Yarn** as your package manager (this project uses Yarn internally for its scripts)
19
+
20
+
> **Don't have Yarn installed?** You can enable it via Node.js Corepack:
21
+
> ```sh
22
+
> corepack enable
23
+
>```
24
+
> Or install it globally via npm:
25
+
>```sh
26
+
> npm install -g yarn
27
+
>```
28
+
29
+
## 1. Clone and Install
30
+
31
+
To infinity and beyond! Clone the repo and install root dependencies:
18
32
19
33
```sh
20
34
git clone https://github.com/strapi/launchpad.git
21
35
cd launchpad
22
-
yarn
23
-
yarn run setup
36
+
yarn install
24
37
```
25
38
26
-
This will clone the repo, install dependencies in both projects (Strapi and Next.js), and run the `setup` scripts to get you started.
27
-
28
-
## 2. Start Strapi
39
+
## 2. Setup
29
40
30
-
Navigate to your `./launchpad/strapi` folder and start the server:
41
+
Run the setup script to install dependencies in both projects (Strapi and Next.js) and copy the environment files:
31
42
32
43
```sh
33
-
cd strapi
34
-
yarn dev
44
+
yarn setup
35
45
```
36
46
37
-
This will install dependencies, sprinkle in some data magic, and run the server.
47
+
## 3. Seed the Data
48
+
49
+
Populate your Strapi instance with demo content:
38
50
39
-
## 3. Start Next.js
51
+
```sh
52
+
yarn seed
53
+
```
40
54
41
-
We're almost ready for lift-off! Next.js is your sleek, futuristic interface for getting all that glorious content out into the world. 🚀
55
+
## 4. Start the Development Servers
42
56
43
-
Open a new terminal tab or window to leave Strapi running, and navigate to your `./launchpad/next` and start the server:
57
+
Launch both Strapi and Next.js concurrently from the root:
44
58
45
59
```sh
46
-
cd next
47
60
yarn dev
48
61
```
49
62
50
-
This installs dependencies, builds your project, and starts your server. You’re now a spacefaring content master!
63
+
This starts the Strapi server first, waits for it to be ready, then starts the Next.js frontend. You're now a spacefaring content master!
51
64
52
-
You're all set! Visit http://localhost:1337/admin to create your first Strapi user, and http://localhost:3000 to discover your space rocket website.
65
+
Visit http://localhost:1337/admin to create your first Strapi user, and http://localhost:3000 to discover your space rocket website.
0 commit comments