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
+22-23Lines changed: 22 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3

4
4
5
-
Welcome aboard **LaunchPad**, the official Strapi demo application, where we launch your content into the stratosphere at the speed of *"we-can't-even-measure-it!"*.
5
+
Welcome aboard **LaunchPad**, the official Strapi demo application, where we launch your content into the stratosphere at the speed of _"we-can't-even-measure-it!"_.
6
6
This repository contains the following:
7
7
8
8
- A Strapi project with content-types and data already onboard
@@ -12,22 +12,6 @@ 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
-
## 🛠 Prerequisites
16
-
17
-
Before you take off, make sure you have the right env variables loaded for each part (rocket science at its best):
- Navigate to your project folder by running `cd launchpad`.
40
24
41
-
## 2. Start Strapi
25
+
## 2. Set up environment variables
26
+
27
+
Before you take off, set up the required environment variables for both Strapi and Next.js.
28
+
29
+
To create the Strapi .env file, copy the content of the `./strapi/.env.example` file into a new file named `./strapi/.env`, then modify the values to match your setup:
30
+
31
+
```sh
32
+
cp ./strapi/.env.example ./strapi/.env
33
+
```
34
+
35
+
Then do the same for the Next.js .env file, and modify it too:
36
+
37
+
```sh
38
+
cp ./next/.env.example ./next/.env
39
+
```
40
+
41
+
## 3. Start Strapi
42
42
43
43
Take a deep breath. It's time to power up the Strapi engines. Navigate to your ./my-projects/launchpad/strapi folder by running:
This will install dependencies, sprinkle in some data magic, and run the server. (You can run these commands separately, but why not be efficient?)
54
54
55
-
## 3. Start Next.js
55
+
## 4. Start Next.js
56
56
57
57
We're almost ready for lift-off! Next.js is your sleek, futuristic interface for getting all that glorious content out into the world. 🚀
58
58
59
-
Navigate to your `./my-projects/launchpad/next` folder by running `cd next` from your command line.
59
+
Open a new terminal tab or window to leave Strapi running, and navigate to your `./my-projects/launchpad/next` folder by running `cd next`.
60
60
61
61
- Run the following command in your `./launchpad/next` folder
62
62
@@ -91,10 +91,9 @@ This installs dependencies, builds your project, and starts your server. You’r
91
91
[Data transfer](https://strapi.io/blog/importing-exporting-and-transferring-data-with-the-strapi-cli) Streams your data from one Strapi instance to another Strapi instance.<br />
92
92
[Review Worfklows](https://docs.strapi.io/user-docs/settings/review-workflows) Create and manage any desired review stages for your content, enabling your team to collaborate in the content creation flow from draft to publication. <br />
@@ -109,4 +108,4 @@ This installs dependencies, builds your project, and starts your server. You’r
109
108
110
109
- The Strapi application contains a postinstall script that will regenerate an uuid for the project in order to get some anonymous usage information concerning this demo. You can disable it by removing the uuid inside the `./strapi/packages.json` file.
111
110
112
-
- The Strapi application contains a patch for the @strapi/admin package. It is only necessary for the hosted demos since we automatically create the Super Admin users for them when they request this demo on our website.
111
+
- The Strapi application contains a patch for the @strapi/admin package. It is only necessary for the hosted demos since we automatically create the Super Admin users for them when they request this demo on our website.
0 commit comments