Welcome to SuperNice Dev Strapi cms project.
This is a boilerplate for examples and best practices.
-
added custom API PUT method to users permissions plugin to add
lastLoginandauthProviderfields to user data: src/extensions/users-permissions/strapi-server.ts -
addeds crone job to delte inactive user: config/servers.ts config/cronTasks.ts
-
install Node.js: https://nodejs.org/en/download
-
install yarn: https://yarnpkg.com/getting-started/install https://classic.yarnpkg.com/en/docs/install#mac-stable
-
install node modules:
yarn-
duplicate .env.example file, rename to .env and add credentials.
-
register admin account: http://localhost:1337/admin/
-
set roles: http://localhost:1337/admin/settings/users-permissions/roles/1
- Users-permissions -> updateMe
http://localhost:1337/admin/settings/users-permissions/roles/2
- Global -> find
- Page -> find & findOne
-
set auth providers: http://localhost:1337/admin/settings/users-permissions/providers
- google: front-end app redirect URL: http://localhost:3000/api/auth/callback/google
- linkedin front-end app redirect URL: http://localhost:3000/api/auth/callback/linkedin
-
add navigation:
-
add pages:
Run dev
yarn dev