@@ -28,35 +28,40 @@ This repository contains 3 separate apps:
28
28
29
29
1 . Change directory to ` publish-backend ` directory
30
30
31
- 1 . Create a copy of the ` .env.example ` file and name it ` .env ` .
31
+ 2 . Create a copy of the ` .env.example ` file and name it ` .env `
32
32
33
- 1 . Run ` docker compose up `
33
+ 3 . Run ` npm install `
34
34
35
- 1 . Run ` npm run cs import ` to import config from ` config/sync/* ` files into
36
- database
35
+ 4 . Run ` docker compose up `
37
36
38
- Visit http://localhost:1337/admin to access the admin panel.
37
+ 5 . In another terminal, go to ` publish-backend ` and run ` npm run cs import ` .
38
+ This will import config from ` config/sync/* ` files into the database.
39
39
40
- You will be prompted to create an Admin account if there is no account in your
41
- local environment yet.
40
+ 6 . Visit http://localhost:1337/admin to access the admin panel
41
+
42
+ 7 . You will be prompted to create an Admin account if there is no account in
43
+ your local environment yet. Create an account here.
44
+
45
+ Note: This is an account to login to the admin panel. It's different from the
46
+ account to login to the frontend app.
42
47
43
48
### Run publish-frontend (Next.js) app
44
49
45
50
1 . In another terminal, go to ` publish-frontend ` directory
46
- 1 . Create a copy of the ` sample.env.local ` file and name it ` .env.local ` . Add
51
+ 2 . Create a copy of the ` sample.env.local ` file and name it ` .env.local ` . Add
47
52
required values.
48
- 1 . Run ` npm install `
49
- 1 . Make sure the backend Strapi app is running in another terminal. Then start
53
+ 3 . Run ` npm install `
54
+ 4 . Make sure the backend Strapi app is running in another terminal. Then start
50
55
the frontend Next.js app by running ` npm run dev ` .
51
- 1 . Visit http://localhost:3000/ to access the authoring site
56
+ 5 . Visit http://localhost:3000/ to access the authoring site
52
57
53
58
### Run publish-11ty-test (11ty) app
54
59
55
60
1 . In another terminal, go to ` publish-11ty-test ` directory
56
- 1 . Run ` yarn install `
57
- 1 . Make sure the backend Strapi app is running in another terminal. Then run
61
+ 2 . Run ` yarn install `
62
+ 3 . Make sure the backend Strapi app is running in another terminal. Then run
58
63
` yarn serve ` to build the static site and serve it.
59
- 1 . Visit http://localhost:8080/ to see the user-facing site
64
+ 4 . Visit http://localhost:8080/ to see the user-facing site
60
65
61
66
- If you made changes to the contents saved in the backend database, you will
62
67
need to re-build the static site by running ` yarn serve ` again to see the
0 commit comments