Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP][WIP] Migrate Strapi to v4 #162

Merged
merged 42 commits into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
0fc990a
Configuration migration
Dnouv May 24, 2022
d8a7781
Migrate Dependencies
Dnouv May 24, 2022
9775eae
Migrate Routes
Dnouv May 24, 2022
c65e649
Migrate Controllers
Dnouv May 24, 2022
d259e72
Migrate Services
Dnouv May 24, 2022
d26b648
Migrate Models
Dnouv May 24, 2022
3ebb994
Add lock file
Dnouv May 24, 2022
71f25e2
Change Components/menu
Dnouv May 25, 2022
7b54dba
Migrate Components
Dnouv May 25, 2022
7f57607
Modify community backend
Dnouv May 25, 2022
14ff18c
Modify gsoc backend
Dnouv May 25, 2022
f05f035
Modify ghcontributor backend
Dnouv May 25, 2022
65983e2
Modify ghissue backend
Dnouv May 25, 2022
1fd16c7
Modify ghpull backend
Dnouv May 25, 2022
9afadc0
Modify ghrepo backend
Dnouv May 25, 2022
df52eda
Modify guide backend
Dnouv May 25, 2022
dac86a5
Modify persona backend
Dnouv May 25, 2022
c14502f
Modify persona-icon backend
Dnouv May 25, 2022
6b7ec81
Modify release-note backend
Dnouv May 25, 2022
d9743d4
Modify top-nav and indexjs backend
Dnouv May 25, 2022
60b3393
rename file backend
Dnouv May 25, 2022
2e0dfe8
Rename displayname
Dnouv May 25, 2022
b297039
rename speakers-> speaker
Dnouv May 25, 2022
3df4a58
Modify packages and add api js
Dnouv May 26, 2022
a787b6b
Modify speaker backend and improve serverjs
Dnouv May 26, 2022
d926808
Fix Bootstrap calls
Dnouv May 27, 2022
9f59c53
Migrate Strapi Bootstrap and fetchData API calls
Dnouv May 27, 2022
c9129dd
Modify the bootstrap permissions programmatically
Dnouv May 28, 2022
fd9dec2
Migrate fetchContributot
Dnouv May 28, 2022
09fec80
Migrate fetchTopPosts and Speaker
Dnouv May 28, 2022
c233a38
Fix speaker query error
Dnouv May 28, 2022
936b80d
Add permissions for findOne
Dnouv May 28, 2022
0465984
Migrate support for publishing contents
Dnouv May 30, 2022
2be1999
Modify frontend calls and add custom services
Dnouv May 30, 2022
753eaec
modify populate controller
Dnouv May 31, 2022
04d4ee7
Migrate homepage
Dnouv May 31, 2022
3d22ed5
Migrate forms page and mainstage page
Dnouv May 31, 2022
cc77ad8
Migrate Github showcase and populate github find controller
Dnouv May 31, 2022
93ee675
Fix navbar on git showcase
Dnouv May 31, 2022
52fca93
Add Readme and minor fixes
Dnouv Jun 2, 2022
02b4d08
Works with npm
Dnouv Jun 2, 2022
ffcf31f
Add package lock
Dnouv Jun 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cms/.env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
HOST=0.0.0.0
PORT=1337
APP_KEYS=km0QgjouyuXrRtyclpqncQ==,eJRdLckHY4J5cOfQNmKs+w==,zHVrFOcuFTLlwsabLJNIaw==,P9XerXlU/TTeIzsOdizoOQ==
JWT_SECRET=ZJsy2B+U7Z+3/WXXn66kbQ==
11 changes: 9 additions & 2 deletions cms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ This stores the structure and data used to statically generate the community sys

By default, strapi listens on port 1337. If you're using WSL2 on Windows and also running Docker Desktop, port 1337 may not be available on your system. To use port 3000 instead, set the environment variable `PORT` to 3000.

#### If migrating form Strapi v3 to v4, please -

> Delete the old `.tmp` and `build` folders (if exists).

> Add the `APP_KEYS`, and `JWT_SECRET` environment variables. (For a quick start, you could use the same keys as in `.env.example`)

```
export PORT=3000
```
Expand All @@ -15,8 +21,9 @@ Start strapi:
```
git clone https://github.com/rocketchat/RC4Community
cd cms
npm i
INITIALIZE_DATA=true npm run develop
yarn install
yarn build
debdutdeb marked this conversation as resolved.
Show resolved Hide resolved
INITIALIZE_DATA=true yarn develop
```

Note:
Expand Down
1 change: 0 additions & 1 deletion cms/src/api/top-nav-item/services/top-nav-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = createCoreService('api::top-nav-item.top-nav-item', ({ strapi }

async create(...args) {
// Calling the default core controller
// console.log("arg", JSON.stringify(args))
const { data, meta } = await super.createOrUpdate(...args);
// some custom logic

Expand Down