World map to display people, events, travels and more.
This API works with the app https://github.com/bernardodiasc/x-world-map
With NVM, configure your ennvironment to use Node version 14:
nvm install v14
nvm use v14
Install dependencies:
yarn install
Make copy of .env.example
in the root of this project and use the name .env.local
.
Use a hash value for these keys:
APP_KEYS=
JWT_SECRET=
API_TOKEN_SALT=
To enable file upload create an account at https://cloudinary.com/ and fill the credentials:
CLOUDINARY_NAME=
CLOUDINARY_KEY=
CLOUDINARY_SECRET=
Then run the app:
yarn develop
In the first run you'll need to create a new Strapi user. Then, in order to get things ready for the app's front-end you need to adjust some settings.
Follow the following steps:
- Go to
Settings > Users & Permissions plugin > Roles
: - Set
Authenticated
permissions:
- Attendee (select all)
- Event (select all)
- Feature-flag (find)
- FAQ (find)
- Location (select all)
- Profile (select all)
- Content Builder (none)
- Email (none)
- 18in (none)
- Upload (destroy, find, findOne, upload)
- Users Permissions (Auth: connect, user: me)
- Set
Public
permissions:
- Attendee (find)
- Event (find)
- Feature-flag (find)
- FAQ (find)
- Location (find)
- Profile (find)
- Content Builder (none)
- Email (none)
- 18in (none)
- Upload (find, findOne)
- Users Permissions (Auth: callback, Auth: connect, Auth: register, user: me)
- Go to
Content manager > Feature Flag
- Create new entries:
- name: AVATAR_UPLOAD, enabled: TRUE
- name: BOUNDS, enabled: FALSE
- name: EVENTS, enabled: TRUE
- name: MARKER_CLUSTERER, enabled: TRUE
- name: TRAVELS, enabled: FALSE